diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb73193..9b934cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,18 +1,24 @@ name: CI on: push: - branches: - - "**" + branches: [ "main"] + pull_request: + branches: [ "main"] jobs: - ci: - runs-on: ubuntu-20.04 + build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: ['3.9'] + runs-on: ${{ matrix.os }} + steps: - name: Checkout uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v3 with: python-version: 3.9 cache: pip @@ -41,17 +47,20 @@ jobs: name: python-code-coverage-report path: coverage.xml - sonarcloud: - runs-on: ubuntu-20.04 - needs: [ci] - steps: - - uses: actions/checkout@v4 - - name: Download python coverage report - uses: actions/download-artifact@v4 - with: - name: python-code-coverage-report - - name: SonarCloud Scan - uses: sonarsource/sonarcloud-github-action@v2.3.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} +# sonarcloud: +# runs-on: ${{ matrix.os }} +# strategy: +# matrix: +# os: [ ubuntu-latest, macos-latest, windows-latest ] +# needs: [ci] +# steps: +# - uses: actions/checkout@v4 +# - name: Download python coverage report +# uses: actions/download-artifact@v4 +# with: +# name: python-code-coverage-report +# - name: SonarCloud Scan +# uses: sonarsource/sonarcloud-github-action@v2.3.0 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file