Skip to content

Commit

Permalink
switch to use include syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAnnex committed Dec 2, 2020
1 parent dce449c commit 12b349b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,15 @@ jobs:
name: Build and publish SpiceyPy 🌶️ 🥧 Python 🐍 distributions 📦 to PyPI and TestPyPI on Windows
strategy:
matrix:
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
include:
- python-version: 3.6
python-tag: "cp36"
- python-version: 3.7
python-tag: "cp37"
- python-version: 3.8
python-tag: "cp38"
- python-version: 3.9
python-tag: "cp39"
runs-on: windows-latest
steps:
- name: Setup 🔬🍦🏗️
Expand Down Expand Up @@ -84,11 +92,8 @@ jobs:
run: |
python setup.py sdist
- name: Build 🛠️ bdist_wheel
env:
PLAT_TAG = ${{ format('cp{0}{1}', matrix.python-version[0], matrix.python-version[2]) }}
run: |
echo PLAT_TAG
python setup.py bdist_wheel --python-tag="win-amd64" --plat-name="$PLAT_TAG"
python setup.py bdist_wheel --plat-name="win-amd64" --python-tag=${{ matrix.python-tag }}
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
Expand Down

0 comments on commit 12b349b

Please sign in to comment.