-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (32 loc) · 953 Bytes
/
tests.yml
File metadata and controls
40 lines (32 loc) · 953 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
name: tests
on: [push, pull_request]
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: "recursive"
- name: Setup uv
id: setup-uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Print the installed version
run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}"
- name: Set up Python ${{ matrix.python-version }} and install dependencies
run: |
uv python install ${{ matrix.python-version }}
uv sync --python ${{ matrix.python-version }} --frozen
- name: Cache Zenodo datasets
uses: actions/cache@v4
with:
path: ~/.cache/sdf_datasets
key: sdf-datasets-17991042
- name: Test with pytest
run: uv run pytest