chore(ci): migrate SOT to Gitea #429
| @@ -30,18 +30,18 @@ jobs: | |||||||
|           python-version: "${{ vars.PYTHON_VERSION }}" |           python-version: "${{ vars.PYTHON_VERSION }}" | ||||||
|       - name: Setup Poetry |       - name: Setup Poetry | ||||||
|         run: curl -sSL https://install.python-poetry.org | python3 - |         run: curl -sSL https://install.python-poetry.org | python3 - | ||||||
|       # - name: Update PATH |       - name: Update PATH | ||||||
|       #   run: PATH="/root/.local/bin:$PATH" |         run: export PATH="/root/.local/bin:$PATH" | ||||||
|       - name: Install dependencies |       - name: Install dependencies | ||||||
|         run: poetry install |         run: /root/.local/bin/poetry install | ||||||
|       - name: Lint |       - name: Lint | ||||||
|         run: | |         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 |           cat lintreport.txt | ||||||
|       - name: Unit Test |       - name: Unit Test | ||||||
|         run: | |         run: | | ||||||
|           poetry run coverage run -m pytest -v --junitxml=testresults.xml |           /root/.local/bin/poetry run coverage run -m pytest -v --junitxml=testresults.xml | ||||||
|           poetry run coverage xml |           /root/.local/bin/poetry run coverage xml | ||||||
|           sed -i 's@${{ github.workspace }}@/github/workspace@g' coverage.xml |           sed -i 's@${{ github.workspace }}@/github/workspace@g' coverage.xml | ||||||
|       - name: SonarQube Cloud Scan |       - name: SonarQube Cloud Scan | ||||||
|         uses: SonarSource/sonarqube-scan-action@v4.2.1 |         uses: SonarSource/sonarqube-scan-action@v4.2.1 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user