From 932f66bfb0d63d21467408e06bc066e711bc08d4 Mon Sep 17 00:00:00 2001 From: goord Date: Fri, 24 May 2024 12:22:05 +0200 Subject: [PATCH] Fixed some failing github actions --- .github/workflows/build.yml | 3 +++ .github/workflows/sonarcloud.yml | 40 -------------------------------- 2 files changed, 3 insertions(+), 40 deletions(-) delete mode 100644 .github/workflows/sonarcloud.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1eadb8e..4dd345f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,6 +18,9 @@ jobs: matrix: os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + exclude: + - os: macos-latest + python-version: '3.8' steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml deleted file mode 100644 index 4be72b5..0000000 --- a/.github/workflows/sonarcloud.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: sonarcloud - -on: - push: - branches: - - main - pull_request: - types: [opened, synchronize, reopened] - branches: - - main - -jobs: - - sonarcloud: - name: SonarCloud - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: 3.9 - - name: Python info - shell: bash -e {0} - run: | - which python - python --version - - name: Install dependencies - run: python -m pip install .[dev] - - name: Run unit tests with coverage - run: python -m pytest --cov --cov-report term --cov-report xml --junitxml=xunit-result.xml tests/ - - name: Correct coverage paths - run: sed -i "s+$PWD/++g" coverage.xml - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{secrets.SONAR_TOKEN }}