Skip to content

Commit

Permalink
🧪 Smoke-test building sdist w/ new/old Python
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Jan 18, 2024
1 parent 88edf12 commit 8f00cf2
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,7 @@ jobs:
build-src:
name: >-
👷 an sdist 📦 ${{ needs.pre-setup.outputs.git-tag }}
under ${{ matrix.python-version }}
[mode: ${{
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
&& 'nightly' || ''
Expand All @@ -1177,6 +1178,18 @@ jobs:
- build-changelog
- pre-setup # transitive, for accessing settings
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.8
- 3.7
- 3.6
store-sdist-to-artifact:
- false
include:
- python-version: >-
3.12
store-sdist-to-artifact: true
env:
ANSIBLE_PYLIBSSH_TRACING: >-
Expand All @@ -1185,10 +1198,10 @@ jobs:
TOXENV: build-dists,metadata-validation

steps:
- name: Switch to using Python 3.11
- name: Switch to using Python ${{ matrix.python-version }} 3.11
uses: actions/[email protected]
with:
python-version: 3.11
python-version: ${{ matrix.python-version }}

- name: Grab the source from Git
uses: actions/[email protected]
Expand Down Expand Up @@ -1311,6 +1324,7 @@ jobs:
ls -1
'dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}'
- name: Store the source distribution package
if: fromJSON(matrix.store-sdist-to-artifact)
uses: actions/upload-artifact@v3
with:
name: ${{ env.dists-artifact-name }}
Expand Down

0 comments on commit 8f00cf2

Please sign in to comment.