-
-
Notifications
You must be signed in to change notification settings - Fork 72
70 lines (67 loc) · 2.09 KB
/
Tests.yml
File metadata and controls
70 lines (67 loc) · 2.09 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
64
65
66
67
68
69
70
name: "Tests"
on:
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
push:
branches:
- master
paths-ignore:
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}
jobs:
tests:
name: "Tests - ${{ matrix.group }} - Julia ${{ matrix.version }}"
permissions:
actions: write
contents: read
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- "1"
- "lts"
- "pre"
group:
- "Core"
- "RaggedArrays"
- "ArrayPartitionAnyAll"
- "ShorthandConstructors"
- "Downstream"
- "nopre"
exclude:
- version: "pre"
group: "nopre"
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: "${{ matrix.version }}"
- uses: julia-actions/cache@v1
with:
token: "${{ secrets.GITHUB_TOKEN }}"
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
GROUP: "${{ matrix.group }}"
# Run tests with 2 threads so that threaded regression tests (e.g. the
# @.. thread=true VectorOfArray{SArray} test for issue #570) actually
# exercise FastBroadcast's Polyester-backed multi-thread batch-split
# path. With the default single thread, that path is a no-op and the
# regression is not covered. Mirrors SciML/OrdinaryDiffEq.jl's
# SublibraryCI.yml which passes JULIA_NUM_THREADS on the runtest step.
JULIA_NUM_THREADS: "2"
- uses: julia-actions/julia-processcoverage@v1
with:
directories: "src,ext"
- uses: codecov/codecov-action@v6
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
with:
files: lcov.info
token: "${{ secrets.CODECOV_TOKEN }}"
fail_ci_if_error: true