@@ -28,7 +28,7 @@ permissions:
28
28
29
29
jobs :
30
30
determine-test-scope :
31
- runs-on : [ slurm-runner, 1xcpu ]
31
+ runs-on : ubuntu-latest
32
32
if : |
33
33
github.event.pull_request.draft == false ||
34
34
github.ref == 'refs/heads/develop' ||
@@ -119,27 +119,32 @@ jobs:
119
119
needs : determine-test-scope
120
120
if : ( needs.determine-test-scope.outputs.local_tests == 'true' ) || ( needs.determine-test-scope.outputs.remote_tests == 'true' )
121
121
name : Run linting
122
- runs-on : [ slurm-runner, 1xcpu ]
123
- container : ghcr.io/astral-sh/uv:debian
122
+ runs-on : ubuntu-latest
123
+ container : ghcr.io/astral-sh/uv:debian
124
124
steps :
125
125
- uses : actions/checkout@v4
126
126
with :
127
127
fetch-depth : 1
128
+ submodules : false
128
129
- uses : astral-sh/ruff-action@v3
129
130
with :
130
131
version : 0.11.11
131
132
- name : Run ruff format
132
133
run : ruff format --check --diff
133
134
- name : Run ruff check
134
135
run : ruff check tidy3d
135
-
136
+
136
137
local-tests :
137
138
# Run on open PRs OR when manually triggered with local_tests=true
138
139
needs : determine-test-scope
139
140
if : needs.determine-test-scope.outputs.local_tests == 'true'
140
141
name : Python ${{ matrix.python-version }} - self-hosted-runner
141
142
runs-on : [ slurm-runner, 4xcpu ]
142
- container : ghcr.io/astral-sh/uv:debian
143
+ container :
144
+ image : ghcr.io/astral-sh/uv:debian
145
+ options : --user 31001:61001 # Required slurm-batch UID: slurm GID for tmp/ file removal
146
+ concurrency :
147
+ group : local-tests-${{ github.ref }}
143
148
strategy :
144
149
matrix :
145
150
python-version : ['3.9', '3.13']
@@ -153,7 +158,8 @@ jobs:
153
158
steps :
154
159
- uses : actions/checkout@v4
155
160
with :
156
- fetch-depth : 0
161
+ fetch-depth : 0 # Required 0 for diff report.
162
+ submodules : false
157
163
158
164
- name : Install project
159
165
env :
@@ -234,7 +240,7 @@ jobs:
234
240
body:report,
235
241
});
236
242
}
237
-
243
+
238
244
remote-tests :
239
245
# Run tests on a push event OR a workflow dispatch with remote_tests
240
246
needs : determine-test-scope
@@ -263,6 +269,7 @@ jobs:
263
269
- uses : actions/checkout@v4
264
270
with :
265
271
fetch-depth : 1
272
+ submodules : false
266
273
267
274
- name : Install Poetry
268
275
uses : snok/install-poetry@v1
@@ -319,7 +326,7 @@ jobs:
319
326
name : pr-requirements-pass
320
327
if : ( needs.determine-test-scope.outputs.local_tests == 'true' ) || ( needs.determine-test-scope.outputs.remote_tests == 'true' )
321
328
needs : [local-tests, remote-tests, lint]
322
- runs-on : [ slurm-runner, 1xcpu ]
329
+ runs-on : ubuntu-latest
323
330
steps :
324
331
- name : check-passing-remote-tests
325
332
run : |
0 commit comments