Skip to content

Commit

Permalink
run pre-commit checks in tests action
Browse files Browse the repository at this point in the history
  • Loading branch information
teddygroves committed Aug 16, 2024
1 parent c08c96c commit a3de45a
Showing 1 changed file with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,26 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.12]

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.12

- name: checkout code
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Install enzax
run: pip install -e .[test]
- name: Run pytest
run: python -m pytest --cov=src/enzax
python-version: ${{ matrix.python-version }}

- name: Install pdm
run: pip install pdm

- name: pre-commit checks
uses: pre-commit/[email protected]

- name: Run tests
run: pdm run pytest tests --cov=src/enzax

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3

0 comments on commit a3de45a

Please sign in to comment.