corrlib/.github/workflows/pytest.yaml
Justus Kuhlmann 6cfa51f878
Some checks failed
Mypy / mypy (pull_request) Waiting to run
Pytest / pytest (3.12) (pull_request) Waiting to run
Pytest / pytest (3.13) (pull_request) Waiting to run
Pytest / pytest (3.14) (pull_request) Waiting to run
Ruff / ruff (pull_request) Waiting to run
Mypy / mypy (push) Failing after 34s
Pytest / pytest (3.12) (push) Failing after 34s
Pytest / pytest (3.13) (push) Failing after 19s
Pytest / pytest (3.14) (push) Failing after 36s
Ruff / ruff (push) Has been cancelled
setup local cache
2026-03-20 16:42:55 +01:00

48 lines
1.3 KiB
YAML

name: Pytest
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 4 1 * *'
jobs:
pytest:
strategy:
matrix:
python-version:
- "3.12"
- "3.13"
- "3.14"
runs-on: ubuntu-latest
env:
UV_CACHE_DIR: ${HOME}/.runner_cache/uv_cache
RUNNER_TOOL_CACHE: ${HOME}/.runner_cache/tool_cache
AGENT_TOOLSDIRECTORY: ${HOME}/.runner_cache/tool_dir
RUN_TOOL_CACHE: ${HOME}/.runner_cache/run_tool_cache
steps:
- name: Setup git
run: |
git config --global user.email "tester@example.com"
git config --global user.name "Tester"
- name: Install git-annex
run: |
sudo apt-get update
sudo apt-get install -y git-annex
- name: Check out the repository
uses: https://github.com/RouxAntoine/checkout@v4.1.8
with:
show-progress: true
- name: Setup python
uses: https://github.com/actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install uv
uses: https://github.com/astral-sh/setup-uv@v5
- name: Install corrlib
run: uv sync --locked --all-extras --dev --python ${{ matrix.python-version }}
- name: Run tests
run: uv run pytest --cov=corrlib tests