Skip to content

Bump pypa/gh-action-pypi-publish in /.github/workflows #61

Bump pypa/gh-action-pypi-publish in /.github/workflows

Bump pypa/gh-action-pypi-publish in /.github/workflows #61

Workflow file for this run

name: Run tests and upload coverage and analytics
on:
push
jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install pytest==8.3.4 \
pytest-benchmark==5.1.0 \
pytest-cov==6.0.0
- name: Run tests
run: pytest --cov --cov-branch --junitxml=junit.xml -o junit_family=legacy
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
flags: unittests
name: codecov-coverage-report
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}