Skip to content

Commit 3838613

Browse files
author
Matthias Koeppe
committed
.github/workflows/build.yml: Separate build and test
1 parent 22b101f commit 3838613

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,19 @@ jobs:
107107
(cd worktree-image && git commit -q -m "current changes" --allow-empty -a && git am; git reset --quiet old; git add -N .) < upstream/ci_fixes.patch
108108
fi
109109
110-
- name: Incremental build, test changed files (sage -t --new)
110+
- name: Incremental build
111111
id: incremental
112112
run: |
113113
# Now re-bootstrap and build. The build is incremental because we were careful with the timestamps.
114-
# We run tests with "sage -t --new"; this only tests the uncommitted changes.
115-
./bootstrap && make build && ./sage -t --new -p2
114+
./bootstrap && make build
116115
working-directory: ./worktree-image
117116
env:
118117
MAKE: make -j2 --output-sync=recurse
119118
SAGE_NUM_THREADS: 2
120119

121-
- name: Build and test modularized distributions
120+
- name: Build modularized distributions
122121
if: always() && steps.worktree.outcome == 'success'
123-
run: make V=0 tox && make pypi-wheels
122+
run: make V=0 tox && make SAGE_CHECK=no pypi-wheels
124123
working-directory: ./worktree-image
125124
env:
126125
MAKE: make -j2 --output-sync=recurse
@@ -165,6 +164,25 @@ jobs:
165164
MAKE: make -j2 --output-sync=recurse
166165
SAGE_NUM_THREADS: 2
167166

167+
# Testing
168+
169+
- name: Test changed files (sage -t --new)
170+
run: |
171+
# We run tests with "sage -t --new"; this only tests the uncommitted changes.
172+
./sage -t --new -p2
173+
working-directory: ./worktree-image
174+
env:
175+
MAKE: make -j2 --output-sync=recurse
176+
SAGE_NUM_THREADS: 2
177+
178+
- name: Test modularized distributions
179+
if: always() && steps.worktree.outcome == 'success'
180+
run: make V=0 tox && make pypi-wheels-check
181+
working-directory: ./worktree-image
182+
env:
183+
MAKE: make -j2 --output-sync=recurse
184+
SAGE_NUM_THREADS: 2
185+
168186
- name: Pytest
169187
if: contains(github.ref, 'pytest')
170188
run: |

0 commit comments

Comments
 (0)