From d6e34ffe690df91ceb2a3e3f8e8e0a8e0e7d8059 Mon Sep 17 00:00:00 2001 From: MilesCranmerBot Date: Sat, 31 Jan 2026 19:43:34 +0000 Subject: [PATCH 1/2] ci: upload Codecov after all tests complete --- .github/workflows/CI.yml | 41 +++++++++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 780019e2..6436c293 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -54,10 +54,12 @@ jobs: julia --color=yes --threads=auto --check-bounds=yes --depwarn=yes --code-coverage=user -e 'import Coverage; import Pkg; Pkg.activate("."); Pkg.test(coverage=true)' julia --color=yes coverage.jl shell: bash - - uses: codecov/codecov-action@v5 + - name: Upload coverage artifact + if: success() + uses: actions/upload-artifact@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} - files: lcov.info + name: coverage-${{ matrix.os }}-julia-${{ matrix.julia-version }} + path: lcov.info additional_tests: @@ -89,8 +91,37 @@ jobs: SR_TEST=${{ matrix.test_name }} julia --color=yes --threads=auto --check-bounds=yes --depwarn=yes --code-coverage=user -e 'import Coverage; import Pkg; Pkg.activate("."); Pkg.test(coverage=true)' julia --color=yes coverage.jl shell: bash - - uses: codecov/codecov-action@v5 + - name: Upload coverage artifact if: steps.run-tests.outcome == 'success' + uses: actions/upload-artifact@v4 + with: + name: coverage-${{ matrix.test_name }}-${{ matrix.os }}-julia-${{ matrix.julia-version }} + path: lcov.info + + + codecov: + name: Upload combined coverage to Codecov + runs-on: ubuntu-latest + needs: + - test + - additional_tests + steps: + - name: Download coverage artifacts + uses: actions/download-artifact@v4 + with: + pattern: coverage-* + path: coverage + + - name: Merge lcov files + run: | + set -euxo pipefail + cd coverage + find . -name 'lcov.info' -print + cat $(find . -name 'lcov.info' -print | sort) > merged-lcov.info + wc -l merged-lcov.info + + - name: Upload to Codecov + uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} - files: lcov.info + files: coverage/merged-lcov.info From 7dccac66ae6f0e5e1b4d6e49dd470a430d906ca6 Mon Sep 17 00:00:00 2001 From: MilesCranmerBot Date: Sat, 31 Jan 2026 20:20:52 +0000 Subject: [PATCH 2/2] chore(ci): bump artifact actions --- .github/workflows/CI.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6436c293..0ee1d9c6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -56,7 +56,7 @@ jobs: shell: bash - name: Upload coverage artifact if: success() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: coverage-${{ matrix.os }}-julia-${{ matrix.julia-version }} path: lcov.info @@ -93,7 +93,7 @@ jobs: shell: bash - name: Upload coverage artifact if: steps.run-tests.outcome == 'success' - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: coverage-${{ matrix.test_name }}-${{ matrix.os }}-julia-${{ matrix.julia-version }} path: lcov.info @@ -107,7 +107,7 @@ jobs: - additional_tests steps: - name: Download coverage artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 with: pattern: coverage-* path: coverage