-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
16 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,10 @@ on: | |
schedule: | ||
- cron: "0 0 * * 0" # every week (for --pre release tests) | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check-manifest: | ||
name: Check Manifest | ||
|
@@ -30,13 +34,10 @@ jobs: | |
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
include: | ||
- python-version: "3.12" | ||
platform: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
|
@@ -123,7 +124,9 @@ jobs: | |
needs: test | ||
if: success() && startsWith(github.ref, 'refs/tags/') && github.event_name != 'schedule' | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -134,21 +137,15 @@ jobs: | |
with: | ||
python-version: "3.x" | ||
|
||
- name: install | ||
- name: Build | ||
run: | | ||
git tag | ||
pip install -U pip | ||
pip install -U build twine | ||
python -m pip install build | ||
python -m build | ||
twine check dist/* | ||
ls -lh dist | ||
- name: Build and publish | ||
run: twine upload dist/* | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
generate_release_notes: true | ||
files: dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters