Skip to content

Reduce GitHub Actions unit test durations by removing tox and using t… #1774

Reduce GitHub Actions unit test durations by removing tox and using t…

Reduce GitHub Actions unit test durations by removing tox and using t… #1774

Workflow file for this run

name: coverage
on:
push:
branches:
- main
- v14
pull_request:
branches:
- main
- v14
jobs:
coverage:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: run unittests
run: |
pip install tox
tox -e py
- name: (coveralls.io) Report code coverage
uses: AndreMiras/coveralls-python-action@develop
with:
github-token: "SmlfzlVJy4ow55rduU7IU5GmmFCfAdGeq"
- if: github.event_name == 'push'
name: (codacy) Create coverage xml report
run: |
pip install coverage
coverage xml
- if: github.event_name == 'push'
name: (codacy) Report code coverage
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: "coverage.xml"