-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove upper bound requirement on numpy 2.0 * always return float from GetEntropy even if scipy returns a np.float64 * separate pyp uploading step into separate job in release workflow
- Loading branch information
Showing
4 changed files
with
28 additions
and
10 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 |
---|---|---|
|
@@ -9,12 +9,10 @@ jobs: | |
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
environment: release | ||
permissions: | ||
# IMPORTANT: this permission is mandatory for trusted publishing | ||
id-token: write | ||
outputs: | ||
release_created: ${{ steps.release.outputs.release_created }} | ||
steps: | ||
- uses: GoogleCloudPlatform/release-please-action@v4.0.2 | ||
- uses: googleapis/release-please-action@v4 | ||
id: release | ||
with: | ||
release-type: python | ||
|
@@ -47,6 +45,26 @@ jobs: | |
run: | | ||
poetry build --ansi -n | ||
- name: Publish package on PyPI | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{ steps.release.outputs.release_created }} | ||
with: | ||
name: dist | ||
path: dist/ | ||
|
||
upload_pypi: | ||
needs: release | ||
runs-on: ubuntu-latest | ||
if: ${{ needs.release.outputs.release_created }} | ||
environment: release | ||
permissions: | ||
# IMPORTANT: this permission is mandatory for trusted publishing | ||
id-token: write | ||
steps: | ||
- name: Get artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
merge-multiple: true | ||
path: dist | ||
|
||
- name: Publish package on PyPI | ||
uses: pypa/[email protected] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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