fix(ci): use fully qualified path for poetry
Some checks failed
CI / ci (pull_request) Failing after 6m11s

This commit is contained in:
Luke Tainton 2024-12-31 22:51:40 +00:00
parent ef1bace230
commit 4902ae180c
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo

View File

@ -30,18 +30,18 @@ jobs:
python-version: "${{ vars.PYTHON_VERSION }}"
- name: Setup Poetry
run: curl -sSL https://install.python-poetry.org | python3 -
# - name: Update PATH
# run: PATH="/root/.local/bin:$PATH"
- name: Update PATH
run: export PATH="/root/.local/bin:$PATH"
- name: Install dependencies
run: poetry install
run: /root/.local/bin/poetry install
- name: Lint
run: |
poetry run pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt .
/root/.local/bin/poetry run pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt .
cat lintreport.txt
- name: Unit Test
run: |
poetry run coverage run -m pytest -v --junitxml=testresults.xml
poetry run coverage xml
/root/.local/bin/poetry run coverage run -m pytest -v --junitxml=testresults.xml
/root/.local/bin/poetry run coverage xml
sed -i 's@${{ github.workspace }}@/github/workspace@g' coverage.xml
- name: SonarQube Cloud Scan
uses: SonarSource/sonarqube-scan-action@v4.2.1