Skip to content

Merge pull request #21 from codecov/update-to-v4 #101

Merge pull request #21 from codecov/update-to-v4

Merge pull request #21 from codecov/update-to-v4 #101

Workflow file for this run

name: Python package
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Run tests and collect coverage
run: |
pytest --cov --cov-report xml
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}