chore(deps): Bump codecov/codecov-action from 4 to 5 #113
This file contains 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
# based on | |
# - https://github.com/JuliaInterop/MathLink.jl/blame/4f6dbe568a7ac2dfda933033ea5196bef508c695/.github/workflows/CI.yml | |
# - https://github.com/WolframResearch/WL-FunctionCompile-CI-Template/blob/d130d1fef06f0597a2e81987140fd21eedb4dd3f/.github/workflows/compile-wl-functions.yml | |
name: CI | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'ci/*' | |
tags: ['*'] | |
pull_request: | |
concurrency: | |
# Skip intermediate builds: always. | |
# Cancel intermediate builds: only if it is a pull request build. | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
jobs: | |
Linux: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- '1.10' | |
os: | |
- ubuntu-latest | |
arch: | |
- x64 | |
container: | |
image: wolframresearch/wolframengine:latest | |
options: --user root | |
env: | |
WOLFRAMINIT: -entitlement ${{ secrets.WOLFRAM_LICENSE_ENTITLEMENT_ID }} -pwfile !cloudlm.wolfram.com | |
# Limit runtime to preserve Wolfram Service Credits | |
timeout-minutes: 10 | |
steps: | |
- name: Install curl | |
# julia-actions/cache depends on dcarbone/install-jq-action, which requires curl | |
run: apt-get update && apt-get install -y curl | |
- uses: actions/checkout@v3 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- name: Install git | |
run: | | |
apt-get update | |
apt-get install -y git | |
which git | |
- uses: julia-actions/cache@v2 | |
- uses: julia-actions/julia-buildpkg@v1 | |
- uses: julia-actions/julia-runtest@v1 | |
- uses: julia-actions/julia-processcoverage@v1 | |
- uses: codecov/codecov-action@v5 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
files: lcov.info | |
docs: | |
name: Documentation | |
runs-on: ubuntu-latest | |
container: | |
image: wolframresearch/wolframengine:latest | |
options: --user root | |
env: | |
WOLFRAMINIT: -entitlement ${{ secrets.WOLFRAM_LICENSE_ENTITLEMENT_ID }} -pwfile !cloudlm.wolfram.com | |
# Limit runtime to preserve Wolfram Service Credits | |
timeout-minutes: 10 | |
permissions: | |
contents: write | |
statuses: write | |
steps: | |
- name: Install curl | |
# julia-actions/cache depends on dcarbone/install-jq-action, which requires curl | |
run: apt-get update && apt-get install -y curl | |
- uses: actions/checkout@v3 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: '1' | |
- uses: julia-actions/cache@v2 | |
- name: Configure doc environment | |
run: | | |
julia --project=docs/ -e ' | |
using Pkg | |
Pkg.develop(PackageSpec(path=pwd())) | |
Pkg.instantiate()' | |
- name: Install git | |
run: | | |
apt-get update | |
apt-get install -y git | |
which git | |
- uses: julia-actions/julia-buildpkg@v1 | |
- uses: julia-actions/julia-docdeploy@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: | | |
julia --project=docs -e ' | |
using Documenter: DocMeta, doctest | |
using WolframExpr | |
using MathLink; W`Sin`; | |
DocMeta.setdocmeta!(WolframExpr, :DocTestSetup, :(using WolframExpr); recursive=true) | |
doctest(WolframExpr)' |