Skip to content

Commit 27a83c4

Browse files
authored
Merge pull request #8 from samsrabin/fix-pytest-ghwf
Fix pytest workflow
2 parents 08cf03a + 872de08 commit 27a83c4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/pytest.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install dependencies
3131
run: |
3232
python -m pip install --upgrade pip
33-
pip install pytest
33+
pip install -r requirements.txt
3434
3535
- name: Run tests
3636
run: |
@@ -39,7 +39,6 @@ jobs:
3939
- name: Run tests with coverage
4040
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
4141
run: |
42-
pip install pytest-cov
4342
pytest tests/ --cov=. --cov-report=xml --cov-report=term
4443
4544
- name: Upload coverage reports

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Only needed for testing
2+
pytest>=7.0.0
3+
pytest-cov>=4.0.0

0 commit comments

Comments
 (0)