From 0f9d40518bcaefe50f95827de85fbf917a2445c9 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Thu, 2 Jan 2025 13:56:55 +0000 Subject: [PATCH] fix(ci): ensure pipx is in PATH 8 --- .gitea/workflows/ci-python-poetry-with-docker.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci-python-poetry-with-docker.yml b/.gitea/workflows/ci-python-poetry-with-docker.yml index 5fbf8f4..e0a1261 100644 --- a/.gitea/workflows/ci-python-poetry-with-docker.yml +++ b/.gitea/workflows/ci-python-poetry-with-docker.yml @@ -47,8 +47,7 @@ jobs: - name: Setup virtual environment run: | - cat $HOME/.profile - echo $PATH + source $HOME/.profile poetry config virtualenvs.create true --local poetry config virtualenvs.in-project true --local @@ -64,11 +63,13 @@ jobs: - name: Lint run: | + source $HOME/.profile poetry run pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt . cat lintreport.txt - name: Unit Test run: | + source $HOME/.profile poetry run coverage run -m pytest -v --junitxml=testresults.xml poetry run coverage xml sed -i 's@${{ gitea.workspace }}@/github/workspace@g' coverage.xml