Skip to content

Update README.md

Update README.md #17

Workflow file for this run

name: Testing
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
run-with-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry config virtualenvs.in-project true
- name: Install dependencies
run: |
poetry install
- name: Run tests with coverage
run: |
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