-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(pre-commit): 🎡 fix pre-commit PATH and PYTHON_PATH
- Loading branch information
1 parent
422b0ae
commit 1b75af5
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
@@ -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 |