Skip to content

Bump codecov/codecov-action from 3 to 4; explicitly pass the Codecov token; use the org-wide Codecov token; fail CI if the Codecov upload fails (so that we quickly notice if the Codecov uploads start having problems) #59

Bump codecov/codecov-action from 3 to 4; explicitly pass the Codecov token; use the org-wide Codecov token; fail CI if the Codecov upload fails (so that we quickly notice if the Codecov uploads start having problems)

Bump codecov/codecov-action from 3 to 4; explicitly pass the Codecov token; use the org-wide Codecov token; fail CI if the Codecov upload fails (so that we quickly notice if the Codecov uploads start having problems) #59

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [master]
tags: ['*']
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.6'
- '1' # automatically expands to the latest stable 1.x release of Julia
- 'nightly'
os:
- ubuntu-latest
arch:
- x64
include:
- os: windows-latest
version: '1'
arch: x86
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
JULIA_NUM_THREADS: 4
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v4
with:
file: lcov.info
fail_ci_if_error: true # So that we notice quickly if Codecov is not uploading
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-docdeploy@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}