Skip to content

Commit 33b246b

Browse files
authored
Merge pull request #85 from slayoo/pypi
add P3.9 build to the matrix
2 parents 01f6092 + 42581bb commit 33b246b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/tests+artifacts+pypi.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,20 @@ on:
1111
branches: [ main ]
1212
schedule:
1313
- cron: '0 13 * * 4'
14+
release:
15+
types: [published]
1416

1517
jobs:
1618
build:
1719
strategy:
1820
matrix:
1921
platform: [ubuntu-latest, macos-latest, windows-latest]
20-
python-version: ["3.7", "3.8", "3.10"]
22+
python-version: ["3.7", "3.8", "3.9", "3.10"]
2123
exclude:
22-
- platform: ubuntu-latest
23-
python-version: "3.7"
2424
- platform: windows-latest
2525
python-version: "3.8"
26+
- platform: windows-latest
27+
python-version: "3.9"
2628
- platform: windows-latest
2729
python-version: "3.10"
2830
runs-on: ${{ matrix.platform }}
@@ -75,13 +77,13 @@ jobs:
7577
path: dist
7678

7779
- if: matrix.platform == 'ubuntu-latest'
78-
run: python -c "import sys; vi=sys.version_info; print(f'PV={vi.major}{vi.minor}')" >> $GITHUB_ENV
80+
run: python -c "import sys; vi=sys.version_info; abitag='m' if vi.minor<8 else ''; print(f'PV=cp{vi.major}{vi.minor}-cp{vi.major}{vi.minor}{abitag}')" >> $GITHUB_ENV
7981

8082
- if: matrix.platform == 'ubuntu-latest'
8183
uses: RalfG/[email protected]
8284
with:
8385
build-requirements: 'setuptools_scm'
84-
python-versions: cp${{ env.PV }}-cp${{ env.PV }}
86+
python-versions: ${{ env.PV }}
8587
pre-build-command: 'git config --global --add safe.directory "*"'
8688

8789
- if: matrix.platform == 'ubuntu-latest'

0 commit comments

Comments
 (0)