Skip to content

Commit d1d1064

Browse files
committed
fix(ci): rename metadata job to collect in workflows
The 'metadata' job in the bench and test workflows has been renamed to 'collect'. This change improves clarity and consistency, as the job's primary function is to collect information such as available benchmarks/tests and supported Python versions, rather than just providing generic metadata. All references to this job have been updated accordingly.
1 parent f31693b commit d1d1064

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

template/.github/workflows/bench.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ env:
1414
FORCE_COLOR: 1
1515

1616
jobs:
17-
metadata:
18-
name: Metadata
17+
collect:
18+
name: Collect
1919
runs-on: ubuntu-latest
2020
outputs:
2121
has-benches: ${{ steps.collect.outputs.has-benches }}
@@ -47,8 +47,8 @@ jobs:
4747
bench:
4848
name: Bench
4949
needs:
50-
- metadata
51-
if: needs.metadata.outputs.has-benches == 'true'
50+
- collect
51+
if: needs.collect.outputs.has-benches == 'true'
5252
runs-on: ubuntu-latest
5353
steps:
5454
- name: Checkout

template/.github/workflows/test.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ env:
1616
FORCE_COLOR: 1
1717

1818
jobs:
19-
metadata:
20-
name: Metadata
19+
collect:
20+
name: Collect
2121
runs-on: ubuntu-latest
2222
outputs:
2323
has-tests: ${{ steps.collect.outputs.has-tests }}
@@ -49,8 +49,8 @@ jobs:
4949
permissions:
5050
id-token: write
5151
needs:
52-
- metadata
53-
if: needs.metadata.outputs.has-tests == 'true'
52+
- collect
53+
if: needs.collect.outputs.has-tests == 'true'
5454
runs-on: ubuntu-latest
5555
env:
5656
EAGER_IMPORT: true # ref: <https://github.com/scientific-python/lazy-loader?tab=readme-ov-file#early-failure>
@@ -79,5 +79,5 @@ jobs:
7979
use_oidc: true
8080
strategy:
8181
matrix:
82-
python-version: ${{ fromJson(needs.metadata.outputs.python-versions) }}
82+
python-version: ${{ fromJson(needs.collect.outputs.python-versions) }}
8383
fail-fast: false

0 commit comments

Comments
 (0)