-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 918 Bytes
/
tests.yml
File metadata and controls
41 lines (33 loc) · 918 Bytes
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
40
41
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11', '3.13']
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install the project
run: uv sync --all-extras --dev
- name: Tests
if: matrix.python-version != '3.11'
run: |
uv run pytest
- name: Tests with coverage
if: matrix.python-version == '3.13'
run: |
uv run pytest --cov skstats --cov-report term-missing