Skip to content

Bump actions/checkout from 6 to 7 #74

Bump actions/checkout from 6 to 7

Bump actions/checkout from 6 to 7 #74

Workflow file for this run

name: Python testing
on:
push:
branches:
- "**"
pull_request:
jobs:
build:
name: Testing on ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
# setuptools_scm requires a non-shallow clone of the repository
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install Python package
run: |
python -m pip install .[tests]
- name: Run Python tests
run: |
python -m pytest --cov --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
fail_ci_if_error: true
files: ./coverage.xml