Skip to content

Commit 7ad0f76

Browse files
committedMar 15, 2023
ci: Build and publish source distributions
Update the GitHub actions configuration. Run the tests on Python 3.11 as well.
1 parent e07dc98 commit 7ad0f76

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed
 

‎.github/workflows/python.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ["3.7", "3.8", "3.9", "3.10"]
15+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Setup Python

‎.github/workflows/wheels.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15-
- uses: messense/maturin-action@v1
15+
- uses: PyO3/maturin-action@v1
1616
with:
1717
args: --release
1818
manylinux: 2014
@@ -23,6 +23,8 @@ jobs:
2323
pip3 install maturin
2424
- name: Build 64-bit Windows wheels
2525
run: maturin build --release --target x86_64-pc-windows-gnu
26+
- name: Build package source distribution
27+
run: maturin sdist
2628
- uses: actions/upload-artifact@v3
2729
with:
2830
name: wheels

‎.gitlab-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ pubtest:
113113
MATURIN_USERNAME: "${PYPI_USER}"
114114
MATURIN_PASSWORD: "${PYPI_PASSWORD}"
115115
script:
116-
- maturin upload --skip-existing dist/*.whl
116+
- maturin upload --skip-existing dist/*
117117

118118
test-install:
119119
stage: install-test
@@ -154,4 +154,4 @@ publish-wheels:
154154
MATURIN_USERNAME: "${PLG_CI_PYPI_USER}"
155155
MATURIN_PASSWORD: "${PLG_CI_PYPI_PASSWORD}"
156156
script:
157-
- maturin upload dist/*.whl
157+
- maturin upload dist/*

0 commit comments

Comments
 (0)
Please sign in to comment.