Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 4d21bc3

Browse files
committed
Run sdist install in container workflow
This saves another runner starting up just for this
1 parent d7a937a commit 4d21bc3

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

.github/workflows/code.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -126,29 +126,20 @@ jobs:
126126
context: .
127127
labels: ${{ steps.meta.outputs.labels }}
128128

129-
- name: Check runtime
129+
- name: Test cli works in runtime image
130130
run: for i in ${{ steps.meta.outputs.tags }}; do docker run ${i} --version; done
131131

132+
- name: Test cli works in sdist installed in local python
133+
# ${GITHUB_REPOSITORY##*/} is the repo name without org
134+
# Replace this with the cli command if different to the repo name
135+
run: pip install dist/*.gz && ${GITHUB_REPOSITORY##*/} --version
136+
132137
- name: Upload build files
133138
uses: actions/upload-artifact@v3
134139
with:
135140
name: dist
136141
path: dist
137142

138-
sdist:
139-
needs: container
140-
runs-on: ubuntu-latest
141-
142-
steps:
143-
- uses: actions/download-artifact@v3
144-
145-
- name: Install sdist in a venv and check cli works
146-
# ${GITHUB_REPOSITORY##*/} is the repo name without org
147-
# Replace this with the cli command if different to the repo name
148-
run: |
149-
pip install dist/*.gz
150-
${GITHUB_REPOSITORY##*/} --version
151-
152143
release:
153144
# upload to PyPI and make a release on every tag
154145
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)