Skip to content

Update .github/workflows/ci.yml #26

Update .github/workflows/ci.yml

Update .github/workflows/ci.yml #26

Workflow file for this run

name: CI
on:
- push
- pull_request
jobs:
test:
strategy:
matrix:
platform:
- Linux
- macOS
- Windows
toxenv:
- py37
- py38
- py39
- py310
- py311
include:
- platform: Linux
os: ubuntu-latest
- platform: macOS
os: macos-latest
- platform: Windows
os: windows-latest
- toxenv: py37
python-version: '3.7'
- toxenv: py38
python-version: '3.8'
- toxenv: py39
python-version: '3.9'
- toxenv: py310
python-version: '3.10'
- toxenv: py311
python-version: '3.11'
fail-fast: false
name: tox -e ${{ matrix.toxenv }} on ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
env:
TOXENV: ${{ matrix.toxenv }}
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -U pip setuptools wheel
pip install -U coverage tox
- name: Test
run: tox
- name: Generate XML coverage report
run: coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
flags: ${{ matrix.platform }}
env_vars: TOXENV