Skip to content

Updated tests

Updated tests #30

Workflow file for this run

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