@@ -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
256- pip install toml invoke
255+ poetry config virtualenvs.create true --local
256+ poetry env use 3.12
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
@@ -305,16 +305,16 @@ jobs:
305305 git config --global credential.helper /usr/local/bin/infrahub-git-credential"
306306 - name : " Setup Python environment"
307307 run : |
308- poetry config virtualenvs.create false
309- pip install toml invoke
308+ poetry config virtualenvs.create true --local
309+ poetry env use 3.12
310310 - name : " Install dependencies"
311311 run : " poetry install --no-interaction --no-ansi"
312312 - name : " Mypy Tests"
313- run : " invoke backend.mypy"
313+ run : " poetry run invoke backend.mypy"
314314 - name : " Pylint Tests"
315- run : " invoke backend.pylint"
315+ run : " poetry run invoke backend.pylint"
316316 - name : " Integration Tests"
317- run : " invoke backend.test-integration"
317+ run : " poetry run invoke backend.test-integration"
318318 - name : " Coveralls : Integration Tests"
319319 uses : coverallsapp/github-action@v2
320320 continue-on-error : true
@@ -366,12 +366,12 @@ jobs:
366366 git config --global credential.helper /usr/local/bin/infrahub-git-credential"
367367 - name : " Setup Python environment"
368368 run : |
369- poetry config virtualenvs.create false
370- pip install toml invoke
369+ poetry config virtualenvs.create true --local
370+ poetry env use 3.12
371371 - name : " Install dependencies"
372372 run : " poetry install --no-interaction --no-ansi"
373373 - name : " Unit Tests"
374- run : " invoke backend.test-unit"
374+ run : " poetry run invoke backend.test-unit"
375375
376376 backend-validate-generated :
377377 if : |
@@ -829,8 +829,8 @@ jobs:
829829 git config --global credential.helper /usr/local/bin/infrahub-git-credential"
830830 - name : " Setup Python environment"
831831 run : |
832- poetry config virtualenvs.create false
833- pip install toml invoke
832+ poetry config virtualenvs.create true --local
833+ poetry env use 3.12
834834 - name : " Install dependencies"
835835 run : " poetry install --no-interaction --no-ansi"
836836 - name : Update PATH
0 commit comments