diff --git a/.github/workflows/CodeCov.yml b/.github/workflows/CodeCov.yml deleted file mode 100644 index d9bdbf4922..0000000000 --- a/.github/workflows/CodeCov.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: CodeCov - -on: - push: - tags: '*' - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - codecov: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Set up Julia - uses: julia-actions/setup-julia@latest - with: - version: '1.10' - - name: Test with coverage - env: - JULIA_PROJECT: "@." - run: | - julia --project=@. -e 'using Pkg; Pkg.instantiate()' - julia --project=@. -e 'using Pkg; Pkg.test(coverage=true)' - - name: Generate coverage file - env: - JULIA_PROJECT: "@." - run: julia --project=@. -e 'using Pkg; Pkg.add("Coverage"); - using Coverage; - LCOV.writefile("coverage-lcov.info", Codecov.process_folder())' - if: success() - - - name: Submit coverage - uses: codecov/codecov-action@v4 - with: - token: ${{secrets.CODECOV_TOKEN}} - if: success() diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 463d2c4eb2..089e72e78f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,22 +25,17 @@ jobs: - x64 steps: - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v1 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: actions/cache@v4 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- + - uses: julia-actions/cache@v2 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 with: file: lcov.info + - uses: codecov/codecov-action@v4 + with: + file: lcov.info + token: ${{secrets.CODECOV_TOKEN}} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c07e8c2e3f..39099a72c8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -19,6 +19,7 @@ jobs: - uses: julia-actions/setup-julia@latest with: version: '1.10' + - uses: julia-actions/cache@v2 - name: Install dependencies run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate(); Pkg.precompile()' - name: Build and deploy