From c883b33e42997af72f07e696b0efa6458d673463 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Thu, 2 Jan 2025 13:40:16 +0000 Subject: [PATCH] fix(ci): ensure pipx is in PATH --- .gitea/workflows/ci-python-poetry-with-docker.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci-python-poetry-with-docker.yml b/.gitea/workflows/ci-python-poetry-with-docker.yml index 2100bea..c95994d 100644 --- a/.gitea/workflows/ci-python-poetry-with-docker.yml +++ b/.gitea/workflows/ci-python-poetry-with-docker.yml @@ -31,12 +31,13 @@ jobs: with: python-version: "${{ vars.PYTHON_VERSION }}" + - name: Ensure pipx is in PATH + run: pipx ensurepath + - name: Setup Poetry 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 @@ -49,20 +50,14 @@ 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