Skip to content

Update test.yml to exclude unsupported python versions #11

Update test.yml to exclude unsupported python versions

Update test.yml to exclude unsupported python versions #11

Workflow file for this run

name: test
on: [push, pull_request, workflow_dispatch]
jobs:
build:
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install dependencies
run: pip install -e .[test]
- name: Run tests
run: pytest --cov-report=xml
- name: Report coverage
# ensures that coverage report is sent only once per workflow
if: matrix.operating-system == 'ubuntu-latest' && matrix.python-version == '3.8'
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true