fix(ci): use fully qualified path for poetry
Some checks failed
CI / ci (pull_request) Failing after 6m11s
Some checks failed
CI / ci (pull_request) Failing after 6m11s
This commit is contained in:
parent
ef1bace230
commit
4902ae180c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user