Skip to content

Commit f5abcf7

Browse files
committed
Another attempt at the correct python version
1 parent 6afd6b7 commit f5abcf7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test_actions.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,10 @@ jobs:
230230
uses: ./setup-poetry
231231
- name: Create project
232232
run: poetry new test-project
233-
- name: Set compatible Python version in pyproject.toml
234-
run: poetry env use ${{ matrix.python-version }} -C test-project
233+
- name: Restrict Python version in pyproject.toml
234+
run: |
235+
poetry run poetry env use ${{ matrix.python-version }} -C test-project
236+
poetry run poetry add 'python@>=3.7,<4.0' --dev -C test-project
235237
- name: Add ni-python-styleguide to the project
236238
run: poetry add ni-python-styleguide -C test-project
237239
- name: Create poetry.lock

0 commit comments

Comments
 (0)