From 30c36729792d39dc023220bacdd058cc904c9917 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Thu, 2 Jan 2025 14:11:47 +0000 Subject: [PATCH] fix(ci): install Poetry globally --- .../ci-python-poetry-with-docker.yml | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/ci-python-poetry-with-docker.yml b/.gitea/workflows/ci-python-poetry-with-docker.yml index 761a1a7..2bb2b23 100644 --- a/.gitea/workflows/ci-python-poetry-with-docker.yml +++ b/.gitea/workflows/ci-python-poetry-with-docker.yml @@ -27,22 +27,19 @@ jobs: format: sonarqube no-fail: true - - name: Ensure pipx is in PATH - run: | - pipx ensurepath - export PATH=$PATH:/root/.local/bin - - - name: Setup Poetry - uses: abatilo/actions-poetry@v4 + # - name: Ensure pipx is in PATH + # run: | + # pipx ensurepath + # export PATH=$PATH:/root/.local/bin # - name: Setup Poetry - # run: | - # pipx install poetry - # echo $PIPX_BIN_DIR >> $GITEA_PATH + # uses: abatilo/actions-poetry@v4 + + - name: Setup Poetry + run: pipx install --global poetry - name: Setup virtual environment run: | - source $HOME/.profile poetry config virtualenvs.create true --local poetry config virtualenvs.in-project true --local @@ -53,20 +50,16 @@ jobs: cache: 'poetry' - name: Install dependencies - run: | - source $HOME/.profile - poetry install + run: poetry install - 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 - name: Lint run: | - source $HOME/.profile poetry run pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt . cat lintreport.txt