Skip to content

1.0.1rc2 (#41)

1.0.1rc2 (#41) #17

Workflow file for this run

name: Run tests and upload coverage
on:
push:
branches:
- master
- develop
jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-22.04
environment: test-coverage
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
python -m pytest -v --cov=pyrcs --cov-branch \
--cov-report=term --cov-report=xml:coverage.xml tests/
- name: Debug coverage file
run: ls -lah
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true
verbose: true