28
28
- os : windows-latest
29
29
target : x86_64-pc-windows-msvc
30
30
run_cli : " yes"
31
- - os : windows-latest
32
- target : aarch64-pc-windows-msvc
33
- run_cli : " no"
34
31
- os : ubuntu-latest
35
32
target : x86_64-unknown-linux-musl
36
33
run_cli : " yes"
@@ -212,6 +209,15 @@ jobs:
212
209
- feature : ci-poetry-custom
213
210
os : ubuntu-latest
214
211
target : x86_64-unknown-linux-musl
212
+ - feature : ci-poetry-global
213
+ os : windows-latest
214
+ target : x86_64-pc-windows-msvc
215
+ - feature : ci-poetry-project
216
+ os : windows-latest
217
+ target : x86_64-pc-windows-msvc
218
+ - feature : ci-poetry-custom
219
+ os : windows-latest
220
+ target : x86_64-pc-windows-msvc
215
221
steps :
216
222
- name : Checkout
217
223
uses : actions/checkout@v4
@@ -225,16 +231,33 @@ jobs:
225
231
226
232
- name : Set Python 3.12 to PATH
227
233
if : startsWith( matrix.feature, 'ci-poetry')
234
+ id : setupPython312
228
235
uses : actions/setup-python@v5
229
236
with :
230
237
python-version : " 3.12"
231
238
232
239
- name : Set Python 3.11 to PATH
233
240
if : startsWith( matrix.feature, 'ci-poetry')
241
+ id : setupPython311
234
242
uses : actions/setup-python@v5
235
243
with :
236
244
python-version : " 3.11"
237
245
246
+ - name : Python 3.12 Path
247
+ if : startsWith( matrix.feature, 'ci-poetry') && startsWith( matrix.os, 'windows')
248
+ run : echo "PYTHON_3_12_PATH=${{ steps.setupPython312.outputs.python-path }}" >> $GITHUB_ENV
249
+ shell : bash
250
+
251
+ - name : Python 3.12 Path
252
+ if : startsWith( matrix.feature, 'ci-poetry') && startsWith( matrix.os, 'windows')
253
+ run : echo $PYTHON_3_12_PATH
254
+ shell : bash
255
+
256
+ - name : Python 3.11 Path
257
+ if : startsWith( matrix.feature, 'ci-poetry') && startsWith( matrix.os, 'windows')
258
+ run : echo "PYTHON_3_11_PATH=${{ steps.setupPython311.outputs.python-path }}" >> $GITHUB_ENV
259
+ shell : bash
260
+
238
261
- name : Install Poetry (envs globally)
239
262
if : startsWith( matrix.feature, 'ci-poetry-global')
240
263
uses : snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b
@@ -260,6 +283,12 @@ jobs:
260
283
virtualenvs-path : ~/my-custom-path
261
284
installer-parallel : true
262
285
286
+ - name : Petry exe
287
+ if : startsWith( matrix.feature, 'ci-poetry')
288
+ run : which poetry
289
+ shell : bash
290
+
291
+
263
292
- name : Petry config
264
293
if : startsWith( matrix.feature, 'ci-poetry')
265
294
run : poetry config --list
@@ -272,13 +301,23 @@ jobs:
272
301
shell : bash
273
302
274
303
- name : Petry virtual env setup 3.12
275
- if : startsWith( matrix.feature, 'ci-poetry')
276
- run : poetry env use python3.12
304
+ if : startsWith( matrix.feature, 'ci-poetry') && startsWith( matrix.os, 'ubuntu')
305
+ run : poetry env use 3.12
306
+ shell : bash
307
+
308
+ - name : Petry virtual env setup 3.12
309
+ if : startsWith( matrix.feature, 'ci-poetry') && startsWith( matrix.os, 'windows')
310
+ run : poetry env use $PYTHON_3_12_PATH
277
311
shell : bash
278
312
279
313
- name : Petry virtual env setup 3.11
280
- if : startsWith( matrix.feature, 'ci-poetry')
281
- run : poetry env use python3.11
314
+ if : startsWith( matrix.feature, 'ci-poetry') && startsWith( matrix.os, 'ubuntu')
315
+ run : poetry env use 3.11
316
+ shell : bash
317
+
318
+ - name : Petry virtual env setup 3.11
319
+ if : startsWith( matrix.feature, 'ci-poetry') && startsWith( matrix.os, 'windows')
320
+ run : poetry env use $PYTHON_3_11_PATH
282
321
shell : bash
283
322
284
323
- name : Petry list envs
@@ -366,67 +405,67 @@ jobs:
366
405
shell : bash
367
406
368
407
- name : Find Environments
369
- run : cargo run --release --target ${{ matrix.target }} -- find -v
408
+ run : cargo run --release --target ${{ matrix.target }}
370
409
shell : bash
371
410
372
411
- name : Run Tests
373
412
run : cargo test --frozen --features ${{ matrix.feature }} -- --nocapture
374
413
shell : bash
375
414
376
- builds :
377
- name : Builds
378
- runs-on : ${{ matrix.os }}
379
- strategy :
380
- fail-fast : false
381
- matrix :
382
- include :
383
- - os : windows-latest
384
- target : x86_64-pc-windows-msvc
385
- - os : windows-latest
386
- target : aarch64-pc-windows-msvc
387
- - os : ubuntu-latest
388
- target : x86_64-unknown-linux-musl
389
- run_cli : " yes"
390
- # - os: ubuntu-latest
391
- # target: aarch64-unknown-linux-gnu
392
- # - os: ubuntu-latest
393
- # target: arm-unknown-linux-gnueabihf
394
- - os : macos-latest
395
- target : x86_64-apple-darwin
396
- run_cli : " yes"
397
- - os : macos-14
398
- target : aarch64-apple-darwin
399
- run_cli : " yes"
400
- # - os: ubuntu-latest
401
- # target: x86_64-unknown-linux-gnu
402
- # - os: ubuntu-latest
403
- # target: aarch64-unknown-linux-musl
404
- steps :
405
- - name : Checkout
406
- uses : actions/checkout@v4
407
-
408
- - name : Rust Tool Chain setup
409
- uses : dtolnay/rust-toolchain@stable
410
- with :
411
- toolchain : stable
412
- targets : ${{ matrix.target }}
413
-
414
- - name : Cargo Fetch
415
- run : cargo fetch
416
- shell : bash
417
-
418
- - name : Run Tests
419
- # We do not want to run all features, CI is only for tests with Python
420
- # Thats a separate job.
421
- run : cargo test --frozen
422
- shell : bash
423
-
424
- - name : Build
425
- run : cargo build --release --target ${{ matrix.target }}
426
- shell : bash
427
-
428
- - name : Upload Artifact
429
- uses : actions/upload-artifact@v4
430
- with :
431
- name : pet-${{ matrix.target }}
432
- path : target/${{ matrix.target }}/release/pet*
415
+ # builds:
416
+ # name: Builds
417
+ # runs-on: ${{ matrix.os }}
418
+ # strategy:
419
+ # fail-fast: false
420
+ # matrix:
421
+ # include:
422
+ # - os: windows-latest
423
+ # target: x86_64-pc-windows-msvc
424
+ # - os: windows-latest
425
+ # target: aarch64-pc-windows-msvc
426
+ # - os: ubuntu-latest
427
+ # target: x86_64-unknown-linux-musl
428
+ # run_cli: "yes"
429
+ # # - os: ubuntu-latest
430
+ # # target: aarch64-unknown-linux-gnu
431
+ # # - os: ubuntu-latest
432
+ # # target: arm-unknown-linux-gnueabihf
433
+ # - os: macos-latest
434
+ # target: x86_64-apple-darwin
435
+ # run_cli: "yes"
436
+ # - os: macos-14
437
+ # target: aarch64-apple-darwin
438
+ # run_cli: "yes"
439
+ # # - os: ubuntu-latest
440
+ # # target: x86_64-unknown-linux-gnu
441
+ # # - os: ubuntu-latest
442
+ # # target: aarch64-unknown-linux-musl
443
+ # steps:
444
+ # - name: Checkout
445
+ # uses: actions/checkout@v4
446
+
447
+ # - name: Rust Tool Chain setup
448
+ # uses: dtolnay/rust-toolchain@stable
449
+ # with:
450
+ # toolchain: stable
451
+ # targets: ${{ matrix.target }}
452
+
453
+ # - name: Cargo Fetch
454
+ # run: cargo fetch
455
+ # shell: bash
456
+
457
+ # - name: Run Tests
458
+ # # We do not want to run all features, CI is only for tests with Python
459
+ # # Thats a separate job.
460
+ # run: cargo test --frozen
461
+ # shell: bash
462
+
463
+ # - name: Build
464
+ # run: cargo build --release --target ${{ matrix.target }}
465
+ # shell: bash
466
+
467
+ # - name: Upload Artifact
468
+ # uses: actions/upload-artifact@v4
469
+ # with:
470
+ # name: pet-${{ matrix.target }}
471
+ # path: target/${{ matrix.target }}/release/pet*
0 commit comments