From 8948b6222bce77402ec5b44d1c0f72c0cfef093b Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 16 Dec 2022 08:33:48 -0300 Subject: [PATCH] [CI/CD][Fix] Avoid mixing `master` and `dev` - The `dev` images must be created from `dev` - Coverage information should be from `dev` --- .github/workflows/pythonapp.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 0669047e..c231f650 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -93,6 +93,8 @@ jobs: # Important! empty directories are skipped!!!! path: output - name: Upload Coverage + # Don't mix stable coverage with development coverage + if: github.ref == 'refs/heads/dev' env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} COVERALLS_FLAG_NAME: ${{ matrix.ki_release }}_${{ matrix.w_tests }} @@ -111,6 +113,8 @@ jobs: runs-on: ubuntu-latest container: setsoft/kicad_auto_test:ki6 needs: test + # Don't mix stable coverage with development coverage + if: github.ref == 'refs/heads/dev' steps: - uses: actions/checkout@v2 @@ -169,6 +173,8 @@ jobs: permissions: packages: write contents: read + # Don't create `dev` images using the `master` + if: github.ref == 'refs/heads/dev' steps: - name: Check out the repo @@ -213,6 +219,8 @@ jobs: permissions: packages: write contents: read + # Don't create `dev` images using the `master` + if: github.ref == 'refs/heads/dev' steps: - name: Check out the repo @@ -257,6 +265,8 @@ jobs: name: Finish Coveralls needs: test runs-on: ubuntu-latest + # Don't mix stable coverage with development coverage + if: github.ref == 'refs/heads/dev' steps: - name: Finished env: