-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (51 loc) · 1.41 KB
/
Copy pathpython-CI.yml
File metadata and controls
55 lines (51 loc) · 1.41 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Python CI
on:
push:
branches:
- master
tags:
- "v*"
paths:
- "python/**"
- ".github/workflows/python-CI.yml"
pull_request:
paths:
- "python/**"
- ".github/workflows/python-CI.yml"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
defaults:
run:
working-directory: python
jobs:
test:
name: Python ${{ matrix.python-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.13"]
os:
- ubuntu-latest
- macos-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: "1"
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
with:
project: "."
- uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- run: uv sync
- run: uv run ruff check .
- run: uv run pytest -q
# Julia-cross-validation and CUDA-backend tests skip themselves when
# julia / a GPU aren't available; the FastPIDC.jl project above is
# instantiated so those tests actually run (rather than erroring)
# on runners that ship a preinstalled julia, e.g. ubuntu-latest.