Skip to content

Commit c4017e4

Browse files
authored
Add smoke tests to CI workflow for verifying build artifacts (#3352)
1 parent 63ce968 commit c4017e4

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,25 @@ jobs:
8686
dist/${{ steps.artifact-name.outputs.wheel }}
8787
retention-days: 5
8888

89+
smoke-tests:
90+
name: Smoke tests
91+
needs:
92+
- build
93+
94+
runs-on: ubuntu-latest
95+
96+
steps:
97+
- name: Switch to using Python 3.11
98+
uses: actions/setup-python@v6
99+
with:
100+
python-version: 3.11
101+
89102
- name: >-
90103
Smoke-test:
91104
retrieve the project source from an sdist inside the GHA artifact
92105
uses: re-actors/checkout-python-sdist@release/v2
93106
with:
94-
source-tarball-name: ${{ steps.artifact-name.outputs.sdist }}
107+
source-tarball-name: ${{ needs.build.outputs.sdist-artifact-name }}
95108
workflow-artifact-name: ${{ env.dists-artifact-name }}
96109
97110
- name: >-
@@ -456,6 +469,7 @@ jobs:
456469
if: always()
457470

458471
needs:
472+
- smoke-tests
459473
- Windows
460474
- Ubuntu
461475
- macOS

0 commit comments

Comments
 (0)