Skip to content

Commit

Permalink
ci(pre-commit): 🎡 fix pre-commit PATH and PYTHON_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
miragecentury committed Aug 23, 2024
1 parent 422b0ae commit 1b75af5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ on:

jobs:
pre-commit:
env:
PYTHON_PATH: "./src:./tests:$PYTHON_PATH"
PATH: "./src:./tests:$PATH"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.12'
python-version: "3.12"
- name: Run image
uses: abatilo/actions-poetry@v2
- name: Setup a local virtual environment (if no poetry.toml file)
Expand All @@ -25,4 +28,5 @@ jobs:
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install the project dependencies
run: poetry install --with test
- uses: pre-commit/[email protected]
- name: Run pre-commit
run: poetry run pre-commit run --all-files

0 comments on commit 1b75af5

Please sign in to comment.