fix(ci): ensure pipx is in PATH
Some checks failed
CI w/ Poetry and Docker / ci (pull_request) Failing after 41s
Some checks failed
CI w/ Poetry and Docker / ci (pull_request) Failing after 41s
This commit is contained in:
parent
48d9b9709c
commit
c883b33e42
@ -31,12 +31,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: "${{ vars.PYTHON_VERSION }}"
|
python-version: "${{ vars.PYTHON_VERSION }}"
|
||||||
|
|
||||||
|
- name: Ensure pipx is in PATH
|
||||||
|
run: pipx ensurepath
|
||||||
|
|
||||||
- name: Setup Poetry
|
- name: Setup Poetry
|
||||||
uses: abatilo/actions-poetry@v4
|
uses: abatilo/actions-poetry@v4
|
||||||
|
|
||||||
- name: Setup virtual environment
|
- name: Setup virtual environment
|
||||||
env:
|
|
||||||
${{ env.PATH }}:/root/.poetry/bin
|
|
||||||
run: |
|
run: |
|
||||||
poetry config virtualenvs.create true --local
|
poetry config virtualenvs.create true --local
|
||||||
poetry config virtualenvs.in-project true --local
|
poetry config virtualenvs.in-project true --local
|
||||||
@ -49,20 +50,14 @@ jobs:
|
|||||||
restore-keys: venv-${{ hashFiles('poetry.lock') }}
|
restore-keys: venv-${{ hashFiles('poetry.lock') }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
env:
|
|
||||||
${{ env.PATH }}:/root/.poetry/bin
|
|
||||||
run: poetry install
|
run: poetry install
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
env:
|
|
||||||
${{ env.PATH }}:/root/.poetry/bin
|
|
||||||
run: |
|
run: |
|
||||||
poetry run pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt .
|
poetry run pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt .
|
||||||
cat lintreport.txt
|
cat lintreport.txt
|
||||||
|
|
||||||
- name: Unit Test
|
- name: Unit Test
|
||||||
env:
|
|
||||||
${{ env.PATH }}:/root/.poetry/bin
|
|
||||||
run: |
|
run: |
|
||||||
poetry run coverage run -m pytest -v --junitxml=testresults.xml
|
poetry run coverage run -m pytest -v --junitxml=testresults.xml
|
||||||
poetry run coverage xml
|
poetry run coverage xml
|
||||||
|
Loading…
Reference in New Issue
Block a user