-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (30 loc) · 926 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
tests:
name: Python ${{ matrix.py-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
py-version: ["3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: pyproject.toml
- name: Install Python ${{ matrix.py-version }}
run: uv python install ${{ matrix.py-version }}
- name: Install
run: uv venv && uv pip install -r tests/requirements.txt --editable .
- name: Run tests for ${{ matrix.python-version }} on ${{ matrix.os }}
run: uv run pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4