From 838169b8bba11b71de81b1bce041f52f476ab72d Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 22 Mar 2024 14:03:29 -0300 Subject: [PATCH] [CI/CD][Tests] Trying the old coveralls, skipping KiCad 8 --- .github/workflows/pythonapp.yml | 47 ++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 9997b85c..03057d12 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -97,12 +97,19 @@ jobs: path: output - name: Upload Coverage # Don't mix stable coverage with development coverage - if: github.ref == 'refs/heads/dev' - uses: coverallsapp/github-action@v2 - with: - flag-name: ${{ matrix.ki_release }}_${{ matrix.w_tests }} - parallel: true - github-token: ${{ secrets.GITHUB_TOKEN }} + if: ${{ (github.ref == 'refs/heads/dev') && (matrix.ki_release != 'ki8') }} + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + COVERALLS_FLAG_NAME: ${{ matrix.ki_release }}_${{ matrix.w_tests }} + COVERALLS_PARALLEL: true + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + # apt-get update + # apt-get -y install python3-pip + # pip3 install coveralls + #coveralls --service=github + #echo Disabled by now + coveralls test_indep: strategy: @@ -153,11 +160,18 @@ jobs: - name: Upload Coverage # Don't mix stable coverage with development coverage if: github.ref == 'refs/heads/dev' - uses: coverallsapp/github-action@v2 - with: - flag-name: independent - parallel: true - github-token: ${{ secrets.GITHUB_TOKEN }} + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + COVERALLS_FLAG_NAME: independent + COVERALLS_PARALLEL: true + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + # apt-get update + # apt-get -y install python3-pip + # pip3 install coveralls + #coveralls --service=github + #echo Disabled by now + coveralls create_images: name: Triggers the docker images creation @@ -238,8 +252,9 @@ jobs: # Don't mix stable coverage with development coverage if: github.ref == 'refs/heads/dev' steps: - - name: Coveralls Finished - uses: coverallsapp/github-action@v2 - with: - parallel-finished: true - carryforward: "ki5_g1,ki5_g2,ki5_g3,ki6_g1,ki6_g2,ki6_g3,ki7_g1,ki7_g2,ki7_g3,ki8_g1,ki8_g2,ki8_g3,independent" + - name: Finished + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + run: | + curl -k https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]="$GITHUB_RUN_ID"&payload[status]=done" +