Skip to content

Commit ab7d465

Browse files
committed
Check install before upload-artifacts
1 parent 5a66709 commit ab7d465

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- uses: actions/checkout@v4
35-
- run: |
36-
make preprocess
37-
pipx run build --sdist
38-
- uses: actions/upload-artifact@v3 # https://github.com/actions/upload-artifact/issues/478
39-
with:
40-
path: ./dist/*.tar.gz
41-
overwrite: true
4235
- uses: actions/setup-python@v5
4336
with:
4437
python-version: '3.10'
4538
- run: |
39+
make preprocess
40+
pip install build
41+
python -m build --sdist
4642
pip install ./dist/*.tar.gz
43+
- uses: actions/upload-artifact@v4 # https://github.com/actions/upload-artifact/issues/478
44+
with:
45+
path: ./dist/*.tar.gz
46+
overwrite: true
4747

4848
bdist:
4949
name: Build bdist wheels and test

0 commit comments

Comments
 (0)