Test against LTS and prerelease versions #690
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 * *' | |
concurrency: | |
group: build-${{ github.event.pull_request.number || github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
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', 'lts', '1', 'pre'] | |
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@v2.2 | |
with: | |
version: ${{ matrix.julia-version }} | |
arch: ${{ matrix.julia-arch }} | |
- name: Cache artifacts | |
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 }}- | |
- name: "Unit Test" | |
uses: julia-actions/julia-runtest@v1 | |
- uses: julia-actions/julia-processcoverage@v1 | |
- uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: lcov.info |