-
-
Notifications
You must be signed in to change notification settings - Fork 153
78 lines (69 loc) · 1.87 KB
/
python_test.yml
File metadata and controls
78 lines (69 loc) · 1.87 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Python Test
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "kornia-py/**"
- "crates/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/python_test.yml"
pull_request:
branches:
- main
paths:
- "kornia-py/**"
- "crates/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/python_test.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: py${{ matrix.python-version }}-linux
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.8"
pixi-env: py38
- python-version: "3.9"
pixi-env: py39
- python-version: "3.10"
pixi-env: py310
- python-version: "3.11"
pixi-env: py311
- python-version: "3.12"
pixi-env: py312
- python-version: "3.13"
pixi-env: py313
- python-version: "3.14"
pixi-env: py314
- python-version: "3.14t"
pixi-env: py314t
threaded: true
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- uses: ./.github/actions/setup-rust-cache
- uses: prefix-dev/setup-pixi@v0.9.4
with:
pixi-version: v0.40.0
cache: true
environments: ${{ matrix.pixi-env }}
- name: Run tests
if: ${{ !matrix.threaded }}
run: pixi run -e ${{ matrix.pixi-env }} py-test
- name: Run multithreaded tests
if: ${{ matrix.threaded }}
run: pixi run -e ${{ matrix.pixi-env }} py-test-threaded
- name: Show sccache stats
if: always()
run: |
sccache --show-stats 2>&1 || echo "::warning::sccache stats unavailable - server may have exited"