Bump codecov/codecov-action from 6 to 7 #209
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - 'LICENSE.md' | |
| - 'README.md' | |
| - '.github/workflows/TagBot.yml' | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - 'LICENSE.md' | |
| - 'README.md' | |
| - '.github/workflows/TagBot.yml' | |
| tags: '*' | |
| jobs: | |
| test: | |
| name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: ${{ matrix.version == 'pre' || matrix.version == 'nightly' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: | |
| - 'lts' | |
| - '1' | |
| - 'pre' | |
| - 'nightly' | |
| os: | |
| - ubuntu-latest | |
| - macOS-latest | |
| - windows-latest | |
| include: | |
| # Native arch per OS. `macOS-latest` is Apple silicon since the | |
| # 2024 GitHub Actions image bump; forcing `arch: x64` there | |
| # would run Julia under Rosetta emulation, which produces | |
| # measurably different FP rounding (vexp2 / tanh_fast Float32 | |
| # accuracy tests exceed their ULP tolerance under Rosetta). | |
| - os: ubuntu-latest | |
| arch: x64 | |
| - os: macOS-latest | |
| arch: aarch64 | |
| - os: windows-latest | |
| arch: x64 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: julia-actions/setup-julia@v3 | |
| with: | |
| version: ${{ matrix.version }} | |
| arch: ${{ matrix.arch }} | |
| - uses: actions/cache@v5 | |
| 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/julia-buildpkg@v1 | |
| - uses: julia-actions/julia-runtest@v1 | |
| - uses: julia-actions/julia-processcoverage@v1 | |
| - uses: codecov/codecov-action@v7 | |
| with: | |
| files: lcov.info | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| docs: | |
| name: Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: julia-actions/setup-julia@v3 | |
| with: | |
| version: '1' | |
| - run: julia --color=yes -e 'using Pkg; VERSION >= v"1.5-" && !isdir(joinpath(DEPOT_PATH[1], "registries", "General")) && Pkg.Registry.add("General")' | |
| shell: bash | |
| env: | |
| JULIA_PKG_SERVER: "" | |
| - run: | | |
| julia --project=docs -e ' | |
| using Pkg | |
| Pkg.develop(PackageSpec(path=pwd())) | |
| Pkg.instantiate()' | |
| - run: julia --project=docs docs/make.jl | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | |
| doctests: | |
| name: Doctests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: julia-actions/setup-julia@v3 | |
| with: | |
| version: '1' | |
| - run: julia --color=yes -e 'using Pkg; VERSION >= v"1.5-" && !isdir(joinpath(DEPOT_PATH[1], "registries", "General")) && Pkg.Registry.add("General")' | |
| shell: bash | |
| env: | |
| JULIA_PKG_SERVER: "" | |
| - run: | | |
| julia --project=docs -e ' | |
| using Pkg | |
| Pkg.develop(PackageSpec(path=pwd())) | |
| Pkg.instantiate()' | |
| - run: | | |
| julia --project=docs -e ' | |
| using Documenter: doctest | |
| using SLEEFPirates | |
| doctest(SLEEFPirates)' |