feat(ci): fix CI, switch to self-hosted SonarQube
Some checks failed
Conventional Commit / Validate PR Title (pull_request) Successful in 32s
CI / ci (pull_request) Failing after 1m41s

This commit is contained in:
Luke Tainton 2025-02-09 20:52:26 +00:00
parent 6f7c3321d0
commit 0cf120130c
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo
17 changed files with 12 additions and 18 deletions

View File

@ -58,6 +58,7 @@ jobs:
- name: SonarQube Cloud Scan
uses: SonarSource/sonarqube-scan-action@v4.2.1
env:
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST_URL }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Snyk Vulnerability Scan

View File

@ -12,6 +12,6 @@ jobs:
name: Validate PR Title
runs-on: ubuntu-latest
steps:
- uses: https://git.tainton.uk/actions/conventional-commits-check-action@v1.2.3
- uses: https://git.tainton.uk/actions/conventional-commits-check-action@v1.2.4
with:
commit-message: ${{ gitea.event.pull_request.title }}

View File

@ -5,18 +5,13 @@ on:
- cron: "0 9 * * 0"
jobs:
# test:
# name: Test
# uses: https://git.tainton.uk/public/pypilot/.gitea/workflows/ci.yml@main
# with:
# python-version: 3.13
# secrets:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
test:
name: Test
uses: https://git.tainton.uk/repos/pypilot/.gitea/workflows/ci.yml@main
create_release:
name: Create Release
# needs: test
needs: test
uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/create-release.yml@main
secrets:
ACTIONS_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
@ -51,8 +46,7 @@ jobs:
- name: Setup Poetry
uses: abatilo/actions-poetry@v4
- name: Update pyproject.toml
run:
./tools/update_pyproject.sh ${{ needs.create_release.outputs.release_name }}
run: ./tools/update_pyproject.sh ${{ needs.create_release.outputs.release_name }}
- name: Install dependencies
run: poetry install
- name: Build wheel file

1
.gitignore vendored
View File

@ -9,6 +9,7 @@ __pycache__/
# Distribution / packaging
.Python
build/
.pdm-build/
develop-eggs/
dist/
downloads/

View File

@ -1,12 +1,10 @@
sonar.organization=luketainton
sonar.projectKey=luketainton_pypilot2
sonar.projectKey=pypilot
sonar.projectName=pypilot
sonar.projectVersion=1.0
sonar.python.version=3.10
sonar.python.version=3.13
sonar.python.coverage.reportPaths=coverage.xml
sonar.python.pylint.reportPaths=lintreport.txt
sonar.python.xunit.reportPath=testresults.xml
sonar.sources=app
sonar.sources=Dockerfile,app
sonar.tests=tests
sonar.exclusions=,.github/**,.gitignore,CODEOWNERS,CHANGELOG.md,LICENSE.md,README.md,renovate.json,requirements-dev.txt,requirements.txt
sonar.exclusions=,.archive/**,.gitea/**,.gitignore,renovate.json
sonar.coverage.exclusions=app/_version.py,app/args.py,app/main.py