-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prep support for running Pants with Python 3.10 or 3.11. (#351)
~Look at the Python tag in the Pants PEX filename~ Cycle through all supported Python versions and check the PEX download URL using HEAD for each one to infer the Python version to use when installing Pants, when using a version of Pants that we don't already know which version of Python to use. ~Drop support for `PANTS_SHA`.~ Done in #376. ~Silence the install step, capturing the output to a `pants-install.log` file in the science cache.~ Done in #375. --------- Co-authored-by: Huon Wilson <[email protected]>
- Loading branch information
Showing
13 changed files
with
248 additions
and
382 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 |
---|---|---|
|
@@ -6,7 +6,15 @@ on: | |
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: The tag to manually run a deploy for. | ||
description: The tag to manually run a deploy for. (example tag `v1.2.3`) | ||
required: true | ||
prerelease: | ||
description: | | ||
Is this for a prerelease? | ||
(for internal testing, not announced nor published to our brew tap) | ||
(example tag `v1.2.3-beta.0`) | ||
type: boolean | ||
default: false | ||
required: true | ||
env: | ||
CARGO_TERM_COLOR: always | ||
|
@@ -25,20 +33,24 @@ jobs: | |
outputs: | ||
release-tag: ${{ steps.determine-tag.outputs.release-tag }} | ||
release-version: ${{ steps.determine-tag.outputs.release-version }} | ||
prerelease: ${{ steps.determine-tag.outputs.prerelease }} | ||
steps: | ||
- name: Determine Tag | ||
id: determine-tag | ||
run: | | ||
if [[ -n "${{ github.event.inputs.tag }}" ]]; then | ||
RELEASE_TAG=${{ github.event.inputs.tag }} | ||
PRERELEASE=${{ github.event.inputs.prerelease }} | ||
else | ||
RELEASE_TAG=${GITHUB_REF#refs/tags/} | ||
PRERELEASE=false | ||
fi | ||
if [[ "${RELEASE_TAG}" =~ ^v[0-9]+.[0-9]+.[0-9]+$ ]]; then | ||
if [[ "${RELEASE_TAG}" =~ ^v[0-9]+.[0-9]+.[0-9]+$ ]] || [[ "${PRERELEASE}" == true ]]; then | ||
echo "release-tag=${RELEASE_TAG}" >> $GITHUB_OUTPUT | ||
echo "release-version=${RELEASE_TAG#v}" >> $GITHUB_OUTPUT | ||
echo "prerelease=${PRERELEASE}" >> $GITHUB_OUTPUT | ||
else | ||
echo "::error::Release tag '${RELEASE_TAG}' must match 'v\d+.\d+.\d+'." | ||
echo "::error::Release tag '${RELEASE_TAG}' must match 'v\d+.\d+.\d+' when not doing a pre-release." | ||
exit 1 | ||
fi | ||
github-release: | ||
|
@@ -87,7 +99,7 @@ jobs: | |
name: scie-pants ${{ needs.determine-tag.outputs.release-version }} | ||
body_path: ${{ steps.prepare-changelog.outputs.changelog-file }} | ||
draft: false | ||
prerelease: false | ||
prerelease: ${{ needs.determine-tag.outputs.prerelease }} | ||
files: dist/scie-pants-* | ||
fail_on_unmatched_files: true | ||
discussion_category_name: Announcements | ||
|
@@ -113,6 +125,7 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Post Release Announcement to Pants Slack `#announce` | ||
if: ${{ needs.determine-tag.outputs.prerelease != 'true' }} | ||
id: slack | ||
uses: slackapi/[email protected] | ||
with: | ||
|
@@ -148,6 +161,7 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Bump `scie-pants` version in Casks/pants.rb to ${{ needs.determine-tag.outputs.release-tag }} | ||
if: ${{ needs.determine-tag.outputs.prerelease != 'true' }} | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.TAP_TOKEN }} | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ members = [ | |
[package] | ||
name = "scie-pants" | ||
description = "Protects your Pants from the elements." | ||
version = "0.11.0" | ||
version = "0.12.0" | ||
edition = "2021" | ||
authors = [ | ||
"John Sirois <[email protected]>", | ||
|
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
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
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
Oops, something went wrong.