-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (46 loc) · 1.25 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: tests
on:
push:
branches:
- main
tags: ['*']
pull_request:
workflow_dispatch:
release:
env:
JULIA_NUM_THREADS: auto
jobs:
tests:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
if: >-
!contains(github.ref, 'refs/tags/')
&& !contains(github.event.head_commit.message, '[skip ci]')
&& !contains(github.event.head_commit.message, '[skip tests]')
strategy:
matrix:
version:
- '1'
- 'nightly'
os:
- ubuntu-latest
include:
- os: windows-latest
version: '1'
- os: macOS-latest
version: '1'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
show-versioninfo: true
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-processcoverage@latest
- uses: codecov/codecov-action@v5
if: "matrix.version == 'nightly' && matrix.os == 'ubuntu-latest'"
with:
file: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}