Skip to content

Update test_tools.py #719

Update test_tools.py

Update test_tools.py #719

name: Codecov
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run:
name: Upload coverage report to codecov.io
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v4
- name: Test with tox
run: |
pip install tox
tox -- --cov felupe --cov-report xml --cov-report term
- name: Upload coverage to Codecov
if: ${{ matrix.python-version == '3.12' }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}