Skip to content

Commit

Permalink
single env pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
diehlbw committed May 23, 2024
1 parent 64759a0 commit 4cb5a98
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,27 @@ jobs:
- name: Run pre-commit steps
run: |
pre-commit run --all-files
run-tests:
name: tests via pytest
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e .[dev,audit]
- name: Run tests
run: |
pytest .
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage-data
path: coverage/coverage.xml
if-no-files-found: error
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ docs =


[tool:pytest]
addopts = --cov-config=setup.cfg --cov-report=html --cov=seismometer
addopts = --cov-config=setup.cfg --cov=seismometer --cov-report=term --cov-report=html --cov-report=xml:coverage/coverage.xml
testpaths = tests
json_report = coverage/test-report.json
jsonapi = True
Expand Down

0 comments on commit 4cb5a98

Please sign in to comment.