diff --git a/.github/workflows/execute-tests.yml b/.github/workflows/execute-tests.yml index ec2d9441..b6b7081c 100644 --- a/.github/workflows/execute-tests.yml +++ b/.github/workflows/execute-tests.yml @@ -11,12 +11,15 @@ on: workpath: required: true type: string + secrets: + CODECOV_TOKEN: + required: true jobs: test: runs-on: ${{ inputs.os }} strategy: - fail-fast: false + fail-fast: true matrix: python-version: ["3.9", "3.10", "3.11", "3.12"] name: Python ${{ matrix.python-version }} @@ -56,18 +59,9 @@ jobs: - name: Install project dependencies run: make install - # Some tests fails intermittently, likely due to the public runners being - # very slow. Especially any client/server tests seems to be problematic. - # This is a simple attempt to re-run the tests up to three times if they - # fail. Does not add any execution time if successful. - - uses: Wandalen/wretry.action@v1.4.4 - name: Run tests - with: - command: make test - current_path: ${{ inputs.workpath }} - attempt_limit: 5 - attempt_delay: 2000 - + - name: Run tests + run: make test + - name: Upload coverage uses: codecov/codecov-action@v4 if: ${{ inputs.os == 'ubuntu-latest' && matrix.python-version == '3.9' && github.repository == 'doorstop-dev/doorstop' }} diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index 6514a62d..d4a0712f 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -11,8 +11,11 @@ jobs: with: os: "ubuntu-latest" workpath: "/home/runner/work/doorstop/doorstop" + Test: uses: ./.github/workflows/execute-tests.yml with: os: "ubuntu-latest" workpath: "/home/runner/work/doorstop/doorstop" + secrets: + CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} diff --git a/.github/workflows/test-osx.yml b/.github/workflows/test-osx.yml index 87908505..39f36d67 100644 --- a/.github/workflows/test-osx.yml +++ b/.github/workflows/test-osx.yml @@ -11,3 +11,5 @@ jobs: with: os: "macos-13" workpath: "/Users/runner/work/doorstop/doorstop" + secrets: + CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index fdb26b21..58467794 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -12,3 +12,5 @@ jobs: basepath: 'D:\' os: "windows-latest" workpath: 'C:\a\doorstop\doorstop' + secrets: + CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}