Skip to content

Commit

Permalink
ci: reverted pre-commit (previously commited was uncomplete)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaudinnicolas committed Nov 20, 2024
1 parent e94fc36 commit 27e1b4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 40 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/pre-commit copy.yaml

This file was deleted.

24 changes: 9 additions & 15 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,17 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "poetry"
- uses: actions/checkout@v2
- uses: actions/setup-python@v2

- name: Install poetry
run: |
python -m pip install poetry
# poetry export --with dev --format=requirements.txt --output=requirements.txt
poetry export --with dev --format=requirements.txt --output=requirements.txt
- name: set PY
run: echo "PY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_ENV
# - uses: actions/cache@v4
# with:
# path: ~/.cache/pre-commit
# key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/[email protected]
# - uses: pre-commit-ci/[email protected]
# if: always()
- uses: actions/cache@v1
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/[email protected]

0 comments on commit 27e1b4b

Please sign in to comment.