-
Notifications
You must be signed in to change notification settings - Fork 18
63 lines (58 loc) · 1.92 KB
/
Copy pathUnitTests.yml
File metadata and controls
63 lines (58 loc) · 1.92 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Unit Tests
on:
push:
branches:
- main
tags: '*'
pull_request:
branches:
- main
# Needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
timeout-minutes: ${{ matrix.os == 'macOS-latest' && 120 || 80 }}
name: ci ${{ matrix.version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.10'
- '1.11'
os:
- ubuntu-latest
# There is a concurrency limit for MacOS runners across the
# entire organization.
# (see https://docs.github.com/en/actions/reference/limits#job-concurrency-limits-for-github-hosted-runners)
# To help with this, MacOS runners are only run when PRs are merged
# into the main branch.
- ${{ github.event_name == 'push' && 'macos-latest' || '' }}
exclude:
- os: ''
steps:
- name: Checkout
uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
with:
version: ${{ matrix.version }}
- uses: julia-actions/cache@v3
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
with:
# Bound the heap so the test suite is not killed on the 7 GB runners
# (the whole suite runs in one process, and Julia 1.11 reaches a
# higher memory watermark than 1.10 with default GC settings).
julia-args: '--heap-size-hint=3G'
- uses: julia-actions/julia-processcoverage@latest
- uses: codecov/codecov-action@v7
if: ${{ matrix.version == '1.10' }} && ${{ matrix.os == 'ubuntu-latest' }}
with:
files: lcov.info
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}