add support for newer pip and CUDA computation versions #1819
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches: | |
- main | |
- releases/* | |
pull_request: | |
paths: | |
- ".github/workflows/tests.yml" | |
- ".github/actions/setup-dev-env/**" | |
- "light_the_torch/**" | |
- "tests/**" | |
- ".coveragerc" | |
- "codecov.yml" | |
- "dodo.py" | |
- "pyproject.toml" | |
- "pytest.ini" | |
- "requirements-dev.txt" | |
# Allows running this workflow manually from the Actions tab | |
workflow_dispatch: | |
schedule: | |
- cron: "0 4 * * *" | |
jobs: | |
unit: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
runs-on: ${{ matrix.os }} | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON_VERSION: ${{ matrix.python-version }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup development environment | |
uses: ./.github/actions/setup-dev-env | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run unit tests | |
run: doit test | |
- name: Upload coverage | |
uses: codecov/codecov-action@v5 | |
with: | |
flags: unit | |
env_vars: OS,PYTHON_VERSION |