fix(ci): install Poetry globally
Some checks failed
CI w/ Poetry and Docker / ci (pull_request) Failing after 12s

This commit is contained in:
Luke Tainton 2025-01-02 14:11:47 +00:00
parent 8a66880eb4
commit 30c3672979
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo

View File

@ -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