-
Notifications
You must be signed in to change notification settings - Fork 1
221 lines (183 loc) · 5.7 KB
/
Copy pathtest.yml
File metadata and controls
221 lines (183 loc) · 5.7 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
name: 🧪 Run tests
on: [pull_request, workflow_dispatch, release]
jobs:
test-ubuntu:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
steps:
- name: ⬇️ Check out the repository
uses: actions/checkout@v4
- name: 📁 Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: 📁 Install the latest version of uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
- name: 📁 Collect dependencies
run: |
uv pip install --system . ".[dev]"
- name: 🧪 Run test
run: |
uv run python -m rubisco test
test-freebsd:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- { python-version: 312, command: python3.12 }
- { python-version: 313, command: python3.13 }
steps:
- name: 🧪 Run test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
mem: 4096
copyback: false
prepare: |
pkg install -y git curl gcc gmake bash uv python${{ matrix.python-version }} py${{ matrix.python-version }}-sqlite3
git clone https://github.com/${{ github.repository }} /root/rubisco --depth 1
cd /root/rubisco
uv pip install --python ${{ matrix.command }} --system . ".[dev]"
run: |
cd /root/rubisco
uv run ${{ matrix.command }} -m rubisco test
test-openbsd:
runs-on: ubuntu-latest
steps:
- name: 🧪 Run test
uses: vmactions/openbsd-vm@v1
with:
usesh: true
mem: 4096
copyback: false
prepare: |
pkg_add git curl gcc gmake bash python py3-pip
git clone https://github.com/${{ github.repository }} /root/rubisco --depth 1
cd /root/rubisco
pip3 install --break-system-packages . ".[dev]"
run: |
cd /root/rubisco
python3 -m rubisco test
test-netbsd:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["312", "313"]
steps:
- name: 🧪 Run test
uses: vmactions/netbsd-vm@v1
with:
usesh: true
mem: 4096
copyback: false
prepare: |
export PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/$(uname -r|cut -d_ -f1)/All/"
/usr/sbin/pkg_add pkgin
/usr/pkg/bin/pkgin update
yes | /usr/pkg/bin/pkgin install git curl gcc gmake bash uv python${{ matrix.python-version }}
/usr/pkg/bin/git clone https://github.com/${{ github.repository }} /root/rubisco --depth 1
cd /root/rubisco
/usr/pkg/bin/uv pip install --system . ".[dev]"
run: |
cd /root/rubisco
/usr/pkg/bin/uv run python -m rubisco test
test-macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
steps:
- name: ⬇️ Check out the repository
uses: actions/checkout@v4
- name: 📁 Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: 📁 Install the latest version of uv
uses: astral-sh/setup-uv@v6
with:
version: "latest"
- name: 📁 Collect dependencies
run: |
uv pip install --system . ".[dev]"
- name: 🧪 Run test
run: |
uv run python -m rubisco test
test-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
steps:
- name: ⬇️ Check out the repository
uses: actions/checkout@v4
- name: 📁 Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: 📁 Install the latest version of uv
uses: astral-sh/setup-uv@v6
with:
version: "latest"
- name: 📁 Collect dependencies
run: |
uv pip install --system . ".[dev]"
- name: 🧪 Run test
run: |
uv run python -m rubisco test
test-msys2-pure:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: ⬇️ Check out the repository
uses: actions/checkout@v4
- name: 📁 Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MSYS
install: gcc cmake make python python-pip
- name: 📁 Collect dependencies
run: |
pip3 install --break-system-packages . ".[dev]"
- name: 🧪 Run test
run: |
python -m rubisco test
test-msys2:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- { sys: mingw64, env: x86_64 }
- { sys: ucrt64, env: ucrt-x86_64 }
- { sys: clang64, env: clang-x86_64 }
defaults:
run:
shell: msys2 {0}
steps:
- name: ⬇️ Check out the repository
uses: actions/checkout@v4
- name: 📁 Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys }}
install: |
mingw-w64-${{matrix.env}}-uv
mingw-w64-${{matrix.env}}-python
- name: 📁 Collect dependencies
run: |
uv pip install --system . ".[dev]"
- name: 🧪 Run test
run: |
uv run python -m rubisco test