Repository navigation
61 lines (56 loc) · 1.51 KB
/
Copy pathtests.yaml
File metadata and controls
61 lines (56 loc) · 1.51 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
---
name: tests
on:
push:
branches:
- main
- '*.*.*'
pull_request:
branches:
- main
- '*.*.*'
env:
UV_LOCKED: 1
UV_PYTHON_PREFERENCE: only-managed
permissions:
contents: read
jobs:
style:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
version: "0.12.13"
enable-cache: true
- name: Run style checks
run: uv run prek run --all-files --show-diff-on-failure
doc:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
version: "0.12.13"
python-version: "3.14"
enable-cache: true
- name: Install dependencies
run: uv sync --group doc
- run: uv run sphinx-build -W --keep-going -b html doc build/sphinx/html
all-checks:
if: always()
needs: [style, doc]
runs-on: ubuntu-24.04
steps:
- name: Fail if a needed job did not succeed
if: >-
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
|| contains(needs.*.result, 'skipped')
run: exit 1