-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: hotfixing the pkgutil.ImpImporter error when using 3.12 based …
…pipx; adding dependabot; patching snapshot tests (#73) * fix: testing ci * chore: testing ci * chore: test * chore: test * chore: testing ci * chore: testing ci * chore: test * chore: testing * chore: test * chore: test * chore: removing tmp tweak * chore: testing ci * chore: lockfile maintenance (poetry update); reverting ci tweaks * chore: testing ci * chore: testing ci * chore: testing ci
- Loading branch information
1 parent
28308a0
commit 45a7721
Showing
7 changed files
with
436 additions
and
342 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: "Python Poetry Action" | ||
description: "An action to setup Poetry" | ||
runs: | ||
using: "composite" | ||
steps: | ||
# A workaround for pipx isn't installed on M1 runner. | ||
# We should remove it after this issue is resolved. | ||
# https://github.com/actions/runner-images/issues/9256 | ||
- if: ${{ runner.os == 'macOS' && runner.arch == 'ARM64' }} | ||
run: | | ||
pip install poetry | ||
shell: bash | ||
|
||
# NOTE: Below commands currently causes a faulty behaviour in pipx where | ||
# preinstalled pipx on github worker has shared venv instantiated via python 3.10 | ||
# however 2 of the above commands are supposed to reinstall pipx and use python version | ||
# specified in setup-python, however shared venv still uses 3.10 hence algokit fails on | ||
# pkgutil.ImpImporter module not found error. | ||
# To be approached as given until further clarified on corresponding issues on pipx repo. | ||
# ------ | ||
# pip install --user pipx | ||
# pipx ensurepath | ||
# ------ | ||
- if: ${{ runner.os != 'macOS' || runner.arch != 'ARM64' }} | ||
run: | | ||
pipx install poetry ${{ runner.os == 'macOS' && '--python "$Python_ROOT_DIR/bin/python"' || '' }} | ||
shell: bash | ||
|
||
- name: Get full Python version | ||
id: full-python-version | ||
shell: bash | ||
run: echo "full_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:3])))')" >> $GITHUB_OUTPUT | ||
|
||
- name: Setup poetry cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ./.venv | ||
key: venv-${{ hashFiles('poetry.lock') }}-${{ runner.os }}-${{ runner.arch }}-${{ steps.full-python-version.outputs.full_version }} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
commit-message: | ||
prefix: "chore(deps)" | ||
groups: | ||
all: | ||
patterns: | ||
- "*" | ||
update-types: | ||
- "minor" | ||
- "patch" |
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.
45a7721
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.
Coverage Report