-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (33 loc) · 1.19 KB
/
tests.yml
File metadata and controls
41 lines (33 loc) · 1.19 KB
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
defaults:
run:
shell: bash
on: # Runs on any push event to any branch except master (the coverage workflow takes care of that)
push:
branches-ignore:
- 'master'
jobs:
tests:
name: ${{ matrix.os }} / ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-24.04, macos-latest, windows-latest]
# We escape with quotes so it doesn't get interpreted as float (e.g. 3.10 -> 3.1 by GA's parser)
python-version: ["3.11", "3.12", "3.13"] # add new versions when they are released
fail-fast: false
steps:
- uses: actions/checkout@v5
- name: Install uv and Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
activate-environment: true
cache-dependency-glob: pyproject.toml
- name: Install package with test dependencies
run: uv sync --all-extras --dev
- name: Get acc-models-lhc
run: git clone -b 2022 https://gitlab.cern.ch/acc-models/acc-models-lhc.git --depth 1
- name: Run Tests
run: make tests