From a358ebe9c1de9478c09505dad502d4c1c999b514 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Thu, 19 Oct 2023 18:47:32 +0200 Subject: [PATCH] Dependabot/coverage (#240) --- .github/workflows/test-and-build-action.yaml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test-and-build-action.yaml b/.github/workflows/test-and-build-action.yaml index 98a1438..b711fd3 100644 --- a/.github/workflows/test-and-build-action.yaml +++ b/.github/workflows/test-and-build-action.yaml @@ -2,14 +2,8 @@ name: Test & Build on: push: - branches: - - '*' - - '!dependabot/**' pull_request: types: [reopened, opened, synchronize] - branches: - - '*' - - '!dependabot/**' release: types: - created @@ -26,10 +20,9 @@ jobs: uses: actions/setup-python@v4 with: python-version: 3.11 - - name: Install Cuda + - name: Install APT run: | sudo apt update -# sudo apt install cuda-10-0 -y - name: Install and configure Poetry uses: snok/install-poetry@v1 with: @@ -60,7 +53,7 @@ jobs: if-no-files-found: error coverage_pull_request: - if: ${{ github.event_name == 'pull_request' }} + if: ${{ github.event_name == 'pull_request' && !startsWith(github.ref, 'refs/heads/dependabot/')}} runs-on: ubuntu-latest needs: test steps: @@ -112,7 +105,7 @@ jobs: path: htmlcov/ build: - if: ${{ github.event_name == 'push' }} && !startsWith(github.ref, 'refs/heads/dependabot/') + if: ${{ github.event_name == 'push'}} runs-on: ubuntu-latest needs: test steps: @@ -141,7 +134,7 @@ jobs: path: dist/ docker-build: - if: ${{ github.event_name == 'push' }} && !startsWith(github.ref, 'refs/heads/dependabot/') + if: ${{ github.event_name == 'push' && !startsWith(github.ref, 'refs/heads/dependabot/')}} runs-on: ubuntu-latest needs: [build] steps: