-
Notifications
You must be signed in to change notification settings - Fork 97
Check that intended python version is being used #808
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
Changes from all commits
351638c
695efc4
5aa1f2f
edad807
86f2bfa
388276d
77b27ab
3dc6d6d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,20 @@ jobs: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: astral-sh/setup-uv@v5 | ||
- run: uv tool install poethepoet | ||
- run: uv sync --all-extras | ||
- run: uv sync --all-extras --python ${{ matrix.python }} | ||
- name: Check python version | ||
shell: bash | ||
run: | | ||
actual=$(uv run python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))") | ||
if [[ "$actual" != "${{ matrix.python }}" ]]; then | ||
echo "Python version in use by uv ($actual) does not match intended version (${{ matrix.python }})" | ||
exit 1 | ||
fi | ||
actual=$(python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))") | ||
if [[ "$actual" != "${{ matrix.python }}" ]]; then | ||
echo "Python version on PATH ($actual) does not match intended version (${{ matrix.python }})" | ||
exit 1 | ||
fi | ||
Comment on lines
+52
to
+64
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this embedded GH workflow logic/check necessary? Can we not trust |
||
- run: poe bridge-lint | ||
if: ${{ matrix.clippyLinter }} | ||
- run: poe lint | ||
|
@@ -84,7 +97,7 @@ jobs: | |
TEMPORAL_TEST_PROTO3: 1 | ||
run: | | ||
uv add --python 3.9 "protobuf<4" | ||
uv sync --all-extras | ||
uv sync --all-extras --python 3.9 | ||
poe build-develop | ||
poe gen-protos | ||
poe format | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the use case for
--python
instead of letting it use the existing installed one? (even if we change the install method)