Keywords and staging for read the docs (#18) #25
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: 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 |