1414 - name : " Setup environment"
1515 uses : " networktocode/gh-action-setup-poetry-environment@v2"
1616 - name : " Linting: Black"
17- run : " invoke black"
17+ run : " poetry run invoke black"
1818 bandit :
1919 runs-on : " ubuntu-20.04"
2020 env :
2525 - name : " Setup environment"
2626 uses : " networktocode/gh-action-setup-poetry-environment@v2"
2727 - name : " Linting: Bandit"
28- run : " invoke bandit"
28+ run : " poetry run invoke bandit"
2929 needs :
3030 - " black"
3131 pydocstyle :
3838 - name : " Setup environment"
3939 uses : " networktocode/gh-action-setup-poetry-environment@v2"
4040 - name : " Linting: pydocstyle"
41- run : " invoke pydocstyle"
41+ run : " poetry run invoke pydocstyle"
4242 needs :
4343 - " black"
4444 flake8 :
6161 poetry config installer.parallel false
6262 poetry install --no-interaction --no-ansi --no-root
6363 - name : " Linting: flake8"
64- run : " invoke flake8"
64+ run : " poetry run invoke flake8"
6565 needs :
6666 - " black"
6767 yamllint :
7474 - name : " Setup environment"
7575 uses : " networktocode/gh-action-setup-poetry-environment@v2"
7676 - name : " Linting: yamllint"
77- run : " invoke yamllint"
77+ run : " poetry run invoke yamllint"
7878 needs :
7979 - " black"
8080 build :
8585 - name : " Setup environment"
8686 uses : " networktocode/gh-action-setup-poetry-environment@v2"
8787 - name : " Build Container"
88- run : " invoke build-image"
88+ run : " poetry run invoke build-image"
8989 needs :
9090 - " bandit"
9191 - " pydocstyle"
9999 - name : " Setup environment"
100100 uses : " networktocode/gh-action-setup-poetry-environment@v2"
101101 - name : " Build Container"
102- run : " invoke build-image"
102+ run : " poetry run invoke build-image"
103103 - name : " Linting: Pylint"
104- run : " invoke pylint"
104+ run : " poetry run invoke pylint"
105105 needs :
106106 - " build"
107107 pytest :
@@ -118,9 +118,9 @@ jobs:
118118 - name : " Setup environment"
119119 uses : " networktocode/gh-action-setup-poetry-environment@v2"
120120 - name : " Build Container"
121- run : " invoke build-image"
121+ run : " poetry run invoke build-image"
122122 - name : " Run Tests"
123- run : " invoke pytest"
123+ run : " poetry run invoke pytest"
124124 needs :
125125 - " pylint"
126126 integration_nautobot :
@@ -232,7 +232,7 @@ jobs:
232232 with :
233233 python-version : " 3.9"
234234 - name : " Install Python Packages for Publishing"
235- run : " pip install invoke poetry toml "
235+ run : " pip install poetry"
236236 - name : " Set env"
237237 run : " echo RELEASE_VERSION=${GITHUB_REF:10} >> $GITHUB_ENV"
238238 - name : " Run Poetry Version"
0 commit comments