Skip to content

Commit

Permalink
Add pre-commit to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zacdezgeo committed Aug 1, 2024
1 parent f9eeb58 commit e917cb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r space2stats_api/requirements.txt
pip install pre-commit
- name: Set PYTHONPATH
run: echo "PYTHONPATH=$(pwd)/space2stats_api" >> $GITHUB_ENV

- name: Run pre-commit
run: pre-commit run --all-files

- name: Run tests
run: pytest space2stats_api/tests

0 comments on commit e917cb0

Please sign in to comment.