Bump actions/checkout from 3 to 4 #634
Workflow file for this run
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
name: Unit test | |
on: | |
create: | |
tags: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- 'LICENSE.md' | |
- 'README.md' | |
- '.github/workflows/TagBot.yml' | |
pull_request: | |
paths-ignore: | |
- 'LICENSE.md' | |
- 'README.md' | |
- '.github/workflows/TagBot.yml' | |
schedule: | |
- cron: '20 00 1 * *' | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
# allow-failure is not supported yet | |
# https://github.com/actions/toolkit/issues/399 | |
fail-fast: false | |
matrix: | |
julia-version: ['1.0', '1.6', '1', '~1.10.0-0', 'nightly'] | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
julia-arch: [x64] | |
# only test one 32-bit job | |
include: | |
- os: ubuntu-latest | |
julia-version: '1' | |
julia-arch: x86 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Set up Julia" | |
uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.julia-version }} | |
arch: ${{ matrix.julia-arch }} | |
- name: Cache artifacts | |
uses: actions/cache@v3 | |
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 }}- | |
- name: "Unit Test" | |
uses: julia-actions/julia-runtest@v1 | |
- uses: julia-actions/julia-processcoverage@v1 | |
- uses: codecov/codecov-action@v3 | |
with: | |
file: lcov.info |