Skip to content

ci: Add codecov flags and run test on different os. #51

ci: Add codecov flags and run test on different os.

ci: Add codecov flags and run test on different os. #51

Workflow file for this run

name: Test
on:
push:
branches: [master, dev]
tags-ignore:
- "*.*.*"
pull_request:
branches: [master]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: test with python${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: python -m pip install tox-gh>=1.2
- name: Run test
run: tox
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ format('python{0} ({1})', matrix.python-version, matrix.os) }}