@@ -406,28 +406,12 @@ jobs:
406
406
benchmark :
407
407
name : Benchmark
408
408
needs :
409
- - build-pure-python-dists # transitive, for accessing settings
410
- - build-wheels-for-tested-arches
411
409
- pre-setup # transitive, for accessing settings
412
410
runs-on : ubuntu-latest
413
411
timeout-minutes : 10
414
412
steps :
415
413
- name : Checkout project
416
414
uses : actions/checkout@v4
417
- - name : Retrieve the project source from an sdist inside the GHA artifact
418
- uses : re-actors/checkout-python-sdist@release/v2
419
- with :
420
- source-tarball-name : >-
421
- ${{ needs.build-pure-python-dists.outputs.sdist-filename }}
422
- workflow-artifact-name : >-
423
- ${{ needs.pre-setup.outputs.dists-artifact-name }}
424
- - name : Download distributions
425
- uses : actions/download-artifact@v4
426
- with :
427
- path : dist
428
- pattern : ${{ needs.pre-setup.outputs.dists-artifact-name }}*
429
- merge-multiple : true
430
-
431
415
- name : Setup Python 3.13
432
416
id : python-install
433
417
uses : actions/setup-python@v5
@@ -439,47 +423,8 @@ jobs:
439
423
uses : py-actions/py-dependency-install@v4
440
424
with :
441
425
path : requirements/pytest.txt
442
- - name : Determine pre-compiled compatible wheel
443
- env :
444
- # NOTE: When `pip` is forced to colorize output piped into `jq`,
445
- # NOTE: the latter can't parse it. So we're overriding the color
446
- # NOTE: preference here via https://no-color.org.
447
- # NOTE: Setting `FORCE_COLOR` to any value (including 0, an empty
448
- # NOTE: string, or a "YAML null" `~`) doesn't have any effect and
449
- # NOTE: `pip` (through its verndored copy of `rich`) treats the
450
- # NOTE: presence of the variable as "force-color" regardless.
451
- #
452
- # NOTE: This doesn't actually work either, so we'll resort to unsetting
453
- # NOTE: in the Bash script.
454
- # NOTE: Ref: https://github.com/Textualize/rich/issues/2622
455
- NO_COLOR : 1
456
- id : wheel-file
457
- run : >
458
- echo -n path= | tee -a "${GITHUB_OUTPUT}"
459
-
460
-
461
- unset FORCE_COLOR
462
-
463
-
464
- python
465
- -X utf8
466
- -u -I
467
- -m pip install
468
- --find-links=./dist
469
- --no-index
470
- '${{ env.PROJECT_NAME }}'
471
- --force-reinstall
472
- --no-color
473
- --no-deps
474
- --only-binary=:all:
475
- --dry-run
476
- --report=-
477
- --quiet
478
- | jq --raw-output .install[].download_info.url
479
- | tee -a "${GITHUB_OUTPUT}"
480
- shell : bash
481
426
- name : Self-install
482
- run : python -Im pip install '${{ steps.wheel-file.outputs.path }}'
427
+ run : python -m pip install -e .
483
428
- name : Run benchmarks
484
429
uses : CodSpeedHQ/action@v3
485
430
env :
@@ -499,6 +444,7 @@ jobs:
499
444
- lint
500
445
- pre-setup # transitive, for accessing settings
501
446
- test
447
+ - benchmark
502
448
steps :
503
449
- name : Decide whether the needed jobs succeeded or failed
504
450
uses : re-actors/alls-green@release/v1
0 commit comments