Skip to content

Commit 1086320

Browse files
committed
ci: force codecov to run after tests
1 parent 1284cfb commit 1086320

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/CI.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,30 @@ jobs:
8686
julia --color=yes --threads=auto --check-bounds=yes --depwarn=yes --code-coverage=user -e 'import Coverage; import Pkg; Pkg.activate("."); Pkg.test(coverage=true)'
8787
julia --color=yes coverage.jl
8888
shell: bash
89-
- uses: codecov/codecov-action@v5
89+
- name: "Upload coverage artifacts"
90+
uses: actions/upload-artifact@v4
91+
with:
92+
name: coverage-${{ matrix.julia-version }}-${{ matrix.os }}-${{ matrix.test }}
93+
path: lcov.info
94+
retention-days: 1
95+
96+
upload-coverage:
97+
name: Upload Coverage to Codecov
98+
needs: test
99+
runs-on: ubuntu-latest
100+
# Only run on pushes to master or pull requests
101+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
102+
steps:
103+
- uses: actions/checkout@v5
104+
- name: Download all coverage artifacts
105+
uses: actions/download-artifact@v4
106+
with:
107+
pattern: coverage-*
108+
path: coverage
109+
- name: Upload to Codecov
110+
uses: codecov/codecov-action@v5
90111
with:
91112
token: ${{ secrets.CODECOV_TOKEN }}
92-
files: lcov.info
113+
directory: ./coverage
114+
fail_ci_if_error: true
115+
verbose: true

0 commit comments

Comments
 (0)