Skip to content

Commit 31458c0

Browse files
committed
Separate the build and test stages
1 parent e945180 commit 31458c0

1 file changed

Lines changed: 26 additions & 16 deletions

File tree

.github/workflows/source-and-docs-release.yml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
name: "Build Python source and docs artifacts"
2020

2121
jobs:
22-
source-and-docs:
22+
build-source-and-docs:
2323
runs-on: ubuntu-22.04
2424
steps:
2525
- name: "Workflow run information"
@@ -73,21 +73,6 @@ jobs:
7373
cd cpython
7474
python ../release.py --export ${{ inputs.cpython_release }}
7575
76-
- name: "Test Python source tarballs"
77-
run: |
78-
mkdir -p ./tmp/installation/
79-
cp cpython/${{ inputs.cpython_release }}/src/Python-${{ inputs.cpython_release }}.tgz ./tmp/
80-
cd tmp/
81-
tar xvf Python-${{ inputs.cpython_release }}.tgz
82-
cd Python-${{ inputs.cpython_release }}
83-
84-
./configure "--prefix=$(realpath '../installation/')"
85-
make -j
86-
make install -j
87-
88-
cd ../installation
89-
./bin/python3 -m test -uall
90-
9176
- name: "Upload the source artifacts"
9277
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
9378
with:
@@ -104,3 +89,28 @@ jobs:
10489
name: docs
10590
path: |
10691
cpython/${{ inputs.cpython_release }}/docs
92+
93+
test-source:
94+
runs-on: ubuntu-22.04
95+
needs:
96+
- build-source-and-docs
97+
steps:
98+
- name: "Download the source artifacts"
99+
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
100+
with:
101+
name: source
102+
103+
- name: "Test Python source tarballs"
104+
run: |
105+
mkdir -p ./tmp/installation/
106+
cp Python-${{ inputs.cpython_release }}.tgz ./tmp/
107+
cd tmp/
108+
tar xvf Python-${{ inputs.cpython_release }}.tgz
109+
cd Python-${{ inputs.cpython_release }}
110+
111+
./configure "--prefix=$(realpath '../installation/')"
112+
make -j
113+
make install -j
114+
115+
cd ../installation
116+
./bin/python3 -m test -uall

0 commit comments

Comments
 (0)