Skip to content

Commit 855f169

Browse files
use pythonpath in pytest configuration.
1 parent 5096a8f commit 855f169

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
10+
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
1111

1212
name: Python ${{ matrix.python-version }}
1313
steps:
@@ -32,8 +32,8 @@ jobs:
3232
3333
- name: Test with pytest
3434
run: |
35-
PYTHONPATH=. pytest
35+
pytest
3636
3737
- name: Check coverage
3838
run: |
39-
PYTHONPATH=. pytest --cov=snakesay --cov-fail-under=65
39+
pytest --cov=snakesay --cov-fail-under=65

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
pythonpath = .

0 commit comments

Comments
 (0)