Skip to content

Commit

Permalink
update build action
Browse files Browse the repository at this point in the history
  • Loading branch information
wuan committed Sep 22, 2024
1 parent 709efd4 commit 3f0eb56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ name: Build
on:
push:
branches:
- master
- main

jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10" ]
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run Tests
Expand All @@ -30,8 +30,8 @@ jobs:
run: |
pip install -q build
python -m build -s
- uses: sonarsource/sonarqube-scan-action@master
if: matrix.python-version == '3.8'
- uses: sonarsource/sonarqube-scan-action@v3
if: matrix.python-version == '3.10'
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
Expand Down
4 changes: 2 additions & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sonar.projectKey=wuan_bo-python_AYVO9zGlU_dM7amWRinB
sonar.projectKey=wuan_bo-python_4f4dd0cd-b83d-407b-9e5c-2c98a6ca3851
sonar.python.coverage.reportPaths=coverage.xml
sonar.python.xunit.reportPath=junit.xml
sonar.python.version=3
sonar.sources=blitzortung/
sonar.tests=tests/
sonar.tests=tests/

0 comments on commit 3f0eb56

Please sign in to comment.