fix(ci): only override PATH when needed
Some checks failed
CI w/ Poetry and Docker / ci (pull_request) Failing after 41s

This commit is contained in:
Luke Tainton 2025-01-02 13:33:14 +00:00
parent bdea6b2b22
commit 48d9b9709c
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo

View File

@ -10,9 +10,6 @@ on:
- ".gitea/CODEOWNERS"
- ".archive"
env:
PATH: ${{ env.PATH }}:/root/.poetry/bin
jobs:
ci:
runs-on: ubuntu-latest
@ -38,6 +35,8 @@ jobs:
uses: abatilo/actions-poetry@v4
- name: Setup virtual environment
env:
${{ env.PATH }}:/root/.poetry/bin
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
@ -50,14 +49,20 @@ jobs:
restore-keys: venv-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
env:
${{ env.PATH }}:/root/.poetry/bin
run: poetry install
- name: Lint
env:
${{ env.PATH }}:/root/.poetry/bin
run: |
poetry run pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt .
cat lintreport.txt
- name: Unit Test
env:
${{ env.PATH }}:/root/.poetry/bin
run: |
poetry run coverage run -m pytest -v --junitxml=testresults.xml
poetry run coverage xml