Skip to content

Commit 6e91d5c

Browse files
committed
Fix CI common-setup action
1 parent b37290e commit 6e91d5c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/actions/common-setup/action.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,15 @@ runs:
151151
- name: Install build and dev dependencies
152152
shell: bash
153153
run: |
154-
python -m pip install --upgrade pip setuptools tomllib wheel
154+
python -m pip install --upgrade pip setuptools wheel
155155
poetry install --only dev --no-root
156156
157+
- name: Install tomllib (if Python < 3.11)
158+
shell: bash
159+
run: |
160+
python -c "import sys; sys.exit(0) if sys.version_info >= (3, 11) else sys.exit(1)" || \
161+
python -m pip install tomllib
162+
157163
# > --------------------------------------------------
158164
# > pre-commit
159165
- name: Cached pre-commit

0 commit comments

Comments
 (0)