-
Notifications
You must be signed in to change notification settings - Fork 23
84 lines (73 loc) · 1.8 KB
/
python-bindings.yml
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
84
name: 🐍 • CI
on:
push:
branches: [ 'main' ]
paths:
- 'bindings/pyfiction/**'
- '**/*.py'
- '**/*.hpp'
- '**/*.cpp'
- '**/*.cmake'
- '**/CMakeLists.txt'
- 'libs/**'
- '.github/workflows/python-bindings.yml'
pull_request:
branches: [ 'main' ]
paths:
- 'bindings/pyfiction/**'
- '**/*.py'
- '**/*.hpp'
- '**/*.cpp'
- '**/*.cmake'
- '**/CMakeLists.txt'
- 'libs/**'
- '.github/workflows/python-bindings.yml'
workflow_run:
workflows: [ "pyfiction Docstring Generator" ]
types:
- completed
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash
env:
Z3_VERSION: 4.13.0
jobs:
python-tests:
name: 🐍 ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [ ubuntu-latest, macos-13, macos-14, windows-latest ]
steps:
- name: Clone Repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup ccache
uses: hendrikmuhs/[email protected]
with:
key: "${{matrix.runs-on}}-pyfiction"
save: true
max-size: 10G
- if: runner.os == 'Linux'
name: Setup mold
uses: rui314/setup-mold@v1
- name: Setup Z3 Solver
id: z3
uses: cda-tum/setup-z3@v1
with:
version: ${{env.Z3_VERSION}}
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
enable-cache: true
- name: Setup nox
uses: wntrblm/[email protected]
- name: 🐍 Test
run: nox -s tests --verbose