-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
13 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 |
---|---|---|
|
@@ -250,7 +250,8 @@ jobs: | |
- PackageWheelsNonPure | ||
- PackageWheelsPure | ||
- PackageSdist | ||
runs-on: windows-2019 | ||
# Needs to run on ubuntu | ||
runs-on: ubuntu-latest | ||
# If conditional based on https://github.com/actions/runner/issues/491#issuecomment-850884422 | ||
if: | | ||
always() && | ||
|
@@ -269,22 +270,12 @@ jobs: | |
name: testpypi | ||
url: https://test.pypi.org/p/pylibCZIrw/${{needs.CodeQualityAnalysis-Test.outputs.pypi_version}} | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Use Python ${{inputs.PyVersionLatest}} | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "${{inputs.PyVersionLatest}}" | ||
architecture: x64 | ||
- name: Environment Setup | ||
run: python -m pip install --upgrade --requirement requirements_deploy.txt | ||
working-directory: "${{ github.workspace }}/${{inputs.PkgRootFolder}}" | ||
- name: Download Wheels and Source Distribution | ||
uses: actions/[email protected] | ||
- name: Collect Wheels and Source Distribution | ||
# Move to dist as default folder for publish action | ||
run: New-Item -Path "." -Name "dist" -ItemType "directory"; Get-ChildItem -Path ".\*.whl",".\*.tar.gz" -Recurse | Move-Item -Destination ".\dist" | ||
shell: powershell | ||
- name: Check Rendering | ||
run: twine check dist/* | ||
shell: pwsh | ||
- name: Upload to PyPI | ||
# As of 06/2024, trusted publishing does not work within reusable workflows located in a different repo | ||
# Tracked in: | ||
|
@@ -295,6 +286,8 @@ jobs: | |
with: | ||
# TODO: Only for testing purposes | ||
repository-url: https://test.pypi.org/legacy/ | ||
# Basically runs twine check | ||
verify-metadata: true | ||
Tag: | ||
permissions: | ||
contents: write | ||
|