Skip to content

feat: add ability for codecov to get test healthiness #688

feat: add ability for codecov to get test healthiness

feat: add ability for codecov to get test healthiness #688

Workflow file for this run

name: Json2xml
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [pypy-3.10, '3.10', '3.11' , '3.12', '3.13.0-rc.2']
os: [
ubuntu-latest,
windows-latest,
macos-latest,
]
include:
# Add exact version 3.14.0-alpha.0 for ubuntu-latest only
- python-version: '3.14.0-alpha.0'
os: ubuntu-latest
exclude:
# Exclude other OSes with Python 3.14.0-alpha.0
- python-version: '3.14.0-alpha.0'
os: windows-latest
- python-version: '3.14.0-alpha.0'
os: macos-latest
steps:
- uses: actions/checkout@v4.1.7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade -r requirements-dev.txt
pip install .
- name: Unit tests
run: |

Check failure on line 45 in .github/workflows/pythonpackage.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pythonpackage.yml

Invalid workflow file

You have an error in your yaml syntax on line 45
pytest --cov --junitxml=junit.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}