chore(ci): migrate SOT to Gitea #429

Merged
luke merged 8 commits from gitea-cicd into main 2025-01-01 00:17:20 +01:00
Showing only changes of commit 4902ae180c - Show all commits

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