-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (73 loc) · 1.83 KB
/
Copy pathpython-test.yml
File metadata and controls
83 lines (73 loc) · 1.83 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
79
80
81
82
83
name: Python checks
on:
push:
branches: [ "main" ]
pull_request:
schedule:
- cron: '4 5 * * 5'
jobs:
ruff:
name: Ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: chartboost/ruff-action@v1
with:
version: 0.7.3
args: check
src: "./python/mantaray"
- uses: chartboost/ruff-action@v1
with:
version: 0.7.3
args: format --check
src: "./python/mantaray"
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build: [beta, stable, windows, macos]
include:
- build: macos
os: macos-latest
rust: stable
- build: windows
os: windows-latest
rust: stable
- build: beta
os: ubuntu-latest
rust: beta
- build: stable
os: ubuntu-latest
rust: stable
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Pixi
uses: prefix-dev/setup-pixi@v0.9.3
with:
pixi-version: v0.57.0
frozen: true
cache: true
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- run: pixi run -e test pytest
doc:
name: Check documentation
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v6
- uses: prefix-dev/setup-pixi@v0.9.3
with:
pixi-version: v0.57.0
cache: true
frozen: true
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Build HTML
# Turn warning into errors
run: SPHINXOPTS="-W --keep-going -n" pixi run -e docs python-docs