Skip to content

Commit 71d3aa7

Browse files
committed
Address comments for reusability
1 parent 90cf964 commit 71d3aa7

2 files changed

Lines changed: 11 additions & 16 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,12 @@ jobs:
476476
name: hypothesis-example-db
477477
path: ${{ env.CPYTHON_BUILDDIR }}/.hypothesis/examples/
478478

479+
test-lazy-imports-all:
480+
name: 'Test Lazy Imports Fully Enabled'
481+
needs: build-context
482+
if: fromJSON(needs.build-context.outputs.run-tests)
483+
uses: ./.github/workflows/reusable-lazy-imports-all.yml
484+
479485
build-asan:
480486
name: 'Address sanitizer'
481487
runs-on: ${{ matrix.os }}
@@ -648,6 +654,7 @@ jobs:
648654
- build-emscripten
649655
- build-wasi
650656
- test-hypothesis
657+
- test-lazy-imports-all
651658
- build-asan
652659
- build-san
653660
- cross-build-linux

.github/workflows/lazy-imports-all.yml renamed to .github/workflows/rusable-test-lazy-imports-all.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests (Lazy Imports)
1+
name: Reusable Lazy Imports Tests
22

33
# Run the CPython test suite with global lazy imports forced on
44
# (``PYTHON_LAZY_IMPORTS=all``, equivalent to ``-X lazy_imports=all``).
@@ -9,19 +9,7 @@ name: Tests (Lazy Imports)
99
# against regressions.
1010

1111
on:
12-
workflow_dispatch:
13-
push:
14-
branches: &branches
15-
- 'main'
16-
- '3.*'
17-
paths-ignore: &paths-ignore
18-
- 'Doc/**'
19-
- 'Misc/**'
20-
- '**/*.md'
21-
- '**/*.rst'
22-
pull_request:
23-
branches: *branches
24-
paths-ignore: *paths-ignore
12+
workflow_call:
2513

2614
permissions:
2715
contents: read
@@ -34,8 +22,8 @@ env:
3422
FORCE_COLOR: 1
3523

3624
jobs:
37-
lazy-imports:
38-
name: lazy_imports=all enabled
25+
test-lazy-imports-all:
26+
name: 'Test Lazy Imports Fully Enabled'
3927
runs-on: ubuntu-24.04
4028
timeout-minutes: 60
4129
env:

0 commit comments

Comments
 (0)