Skip to content

Commit 53b549c

Browse files
authored
Prepare release v2.4.0 and automate PyPI publishing (#183)
Bump version to 2.4.0 (minor bump due to dropping Python 3.7 support). Enable and configure automated PyPI publishing via GitHub Actions using Trusted Publishers (OIDC).
1 parent c60642a commit 53b549c

2 files changed

Lines changed: 14 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -283,19 +283,17 @@ jobs:
283283
run: pytest tests --cov=./src/pymatching --cov-report=xml
284284
- name: Upload coverage reports to Codecov
285285
uses: codecov/codecov-action@v3
286-
# upload_pypi:
287-
# needs: [build_wheels, build_sdist]
288-
# runs-on: ubuntu-latest
289-
# environment: pypi
290-
# permissions:
291-
# id-token: write
292-
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
293-
# steps:
294-
# - uses: actions/download-artifact@v4
295-
# with:
296-
# # unpacks all CIBW artifacts into dist/
297-
# pattern: cibw-*
298-
# path: dist
299-
# merge-multiple: true
286+
upload_pypi:
287+
needs: [merge_upload_artifacts]
288+
runs-on: ubuntu-latest
289+
environment: pypi
290+
permissions:
291+
id-token: write
292+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
293+
steps:
294+
- uses: actions/download-artifact@v4
295+
with:
296+
name: dist
297+
path: dist
300298

301-
# - uses: pypa/gh-action-pypi-publish@release/v1
299+
- uses: pypa/gh-action-pypi-publish@release/v1

src/pymatching/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.3.1" # pragma no cover
1+
__version__ = "2.4.0" # pragma no cover

0 commit comments

Comments
 (0)