Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: split 'build' into 'test' and 'deploy' workflows #299

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

mwtoews
Copy link
Member

@mwtoews mwtoews commented Jan 19, 2024

Split the CI workflows into two logical components:

  1. test: keeps multi-platform/mulit-sdix combination checks with conda, and checks ubuntu. This workflow has a cron schedule, running automatically once a week.
  2. deploy: builds wheels (via cibuildwheel) and sdist, publishes to PyPI based on this example which contains a few fixes for recent upload/download actions with multiple targets.

@mwtoews mwtoews merged commit 703f15a into Toblerity:master Jan 19, 2024
42 checks passed
@mwtoews mwtoews deleted the split-workflows branch January 19, 2024 08:27
@mwtoews
Copy link
Member Author

mwtoews commented Jan 19, 2024

Not surprisingly, the deploy workflow did not work on publish:

Notice: Attempting to perform trusted publishing exchange to retrieve a temporary short-lived API token for authentication against https://upload.pypi.org/legacy/ due to token username with no supplied password field
Error: Trusted publishing exchange failure:
Token request failed: the server refused the request for the following reasons:

  • invalid-publisher: valid token, but no corresponding publisher (All lookup strategies exhausted)

This generally indicates a trusted publisher configuration error, but could
also indicate an internal error on GitHub or PyPI's part.

most likely this needs to be restored (for next release):

          user: __token__
          password: ${{ secrets.pypi_token }}

Also I don't have permissions on PyPI to manually upload the artefacts:

ERROR HTTPError: 403 Forbidden from https://upload.pypi.org/legacy/
The user 'mwtoews' isn't allowed to upload to project 'Rtree'.

@hobu could you provide the permissions? Then I'll simply use twine upload manually this round.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant