Updated tests #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
run-with-coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Run tests with coverage | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
cache: 'poetry' | |
run: | | |
poetry install | |
poetry run pytest --cov=ctdfjorder --cov-report=html | |
- name: Upload coverage report as artifact | |
if: success() # This step will only run if previous steps succeeded | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-report | |
path: htmlcov |