Skip to content

Upload to codecov

Upload to codecov #11

name: pytest
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
poetry-version: 1.8.3
- name: Install dependencies
run: |
poetry install
- name: Run tests with coverage
run: |
poetry run pytest --cov=drresult
- name: Generate coverage report
run: |
poetry run coverage xml
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}