Skip to content

Commit 5311b24

Browse files
committed
Thirteenth time is the charm
1 parent 82c74e6 commit 5311b24

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/test_actions.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,8 @@ jobs:
230230
uses: ./setup-poetry
231231
- name: Create project
232232
run: poetry new test-project
233-
- name: Restrict Python version in pyproject.toml
234-
run: |
235-
poetry env use ${{ matrix.python-version }} -C test-project
236233
- name: Set compatible Python version in pyproject.toml
237-
run: sed -i 's/^python = .*/python = ">=3.7,<4.0"/' test-project/pyproject.toml
234+
run: poetry add 'python@>=3.7,<4.0' --lock --dev -C test-project || poetry add 'python@>=3.7,<4.0' -C test-project
238235
- name: Show pyproject.toml
239236
run: cat test-project/pyproject.toml
240237
- name: Add ni-python-styleguide to the project

0 commit comments

Comments
 (0)