Skip to content

Commit aff9801

Browse files
committed
Leverage poetry venv to run unit tests
1 parent 3eabb10 commit aff9801

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ jobs:
252252
git config --global credential.helper /usr/local/bin/infrahub-git-credential"
253253
- name: "Setup Python environment"
254254
run: |
255-
poetry config virtualenvs.create false
255+
poetry env use 3.12
256256
pip install toml invoke
257257
- name: "Install dependencies"
258258
run: "poetry install --no-interaction --no-ansi"
259259
- name: "Unit Tests"
260-
run: "invoke backend.test-unit"
260+
run: "poetry run invoke backend.test-unit"
261261
- name: "Coveralls : Unit Tests"
262262
uses: coverallsapp/github-action@v2
263263
continue-on-error: true
@@ -757,7 +757,7 @@ jobs:
757757
git config --global credential.helper /usr/local/bin/infrahub-git-credential"
758758
- name: "Setup Python environment"
759759
run: |
760-
poetry config virtualenvs.create false
760+
poetry env use 3.12
761761
pip install toml invoke
762762
- name: "Install dependencies"
763763
run: "poetry install --no-interaction --no-ansi"

0 commit comments

Comments
 (0)