-
Notifications
You must be signed in to change notification settings - Fork 54
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
197 changed files
with
4,200 additions
and
6,427 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,53 +4,63 @@ on: | |
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "The type of version bump. Use `-s` for no change. See docs for details: https://python-poetry.org/docs/cli/#version" | ||
description: "The type of version bump. Use `-s` for no change. See docs for details: https://hatch.pypa.io/latest/version/#supported-segments" | ||
type: choice | ||
required: true | ||
default: "-s" | ||
options: | ||
- major | ||
- minor | ||
- patch | ||
- premajor | ||
- preminor | ||
- prepatch | ||
- prerelease | ||
- prerelease --next-phase | ||
- "-s" | ||
prerelease: | ||
description: "If this is a prerelease and which type. See docs for details: https://hatch.pypa.io/latest/version/#supported-segments" | ||
type: choice | ||
required: false | ||
options: | ||
- "alpha" | ||
- "beta" | ||
- "rc" | ||
|
||
jobs: | ||
prepare: | ||
if: github.repository_owner == 'viamrobotics' | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.bump_version.outputs.version }} | ||
version: ${{ steps.set_version.outputs.version }} | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Poetry | ||
run: pipx install poetry | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: poetry | ||
run: uv python install 3.12 | ||
|
||
- name: Install Package | ||
run: poetry install --all-extras | ||
run: uv sync --all-extras | ||
|
||
- name: Clean Format Test | ||
run: make clean format typecheck test | ||
run: uv run make clean format typecheck test | ||
|
||
- name: Bump Version | ||
id: bump_version | ||
shell: bash | ||
if: inputs.version != '-s' && inputs.prerelease | ||
run: echo "ABC" && uvx hatch version ${{ inputs.version }},${{ inputs.prerelease }} | ||
|
||
- name: Bump Version | ||
id: bump_version | ||
shell: bash | ||
if: inputs.version != '-s' && !inputs.prerelease | ||
run: echo "DEF" && uvx hatch version ${{ inputs.version }} | ||
|
||
- name: Set Version | ||
id: set_version | ||
run: | | ||
poetry version ${{ inputs.version }} | ||
echo "SDK_VERSION=$(poetry version -s)" >> $GITHUB_ENV | ||
echo "version=$(poetry version -s)" >> $GITHUB_OUTPUT | ||
echo "SDK_VERSION=$(uvx hatch version)" >> $GITHUB_ENV | ||
echo "version=$(uvx hatch version)" >> $GITHUB_OUTPUT | ||
- name: Check if release exists | ||
uses: cardinalby/[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 was deleted.
Oops, something went wrong.
Oops, something went wrong.