-
Notifications
You must be signed in to change notification settings - Fork 6
79 lines (76 loc) · 2.32 KB
/
MTKDownstream.yml
File metadata and controls
79 lines (76 loc) · 2.32 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
71
72
73
74
75
76
77
78
79
name: "Test ModelingToolkit"
on:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'benchmark/**'
concurrency:
# Skip intermediate builds: always, but for the master branch.
# Cancel intermediate builds: always, but for the master branch.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
tests:
name: "Tests"
strategy:
fail-fast: false
matrix:
version:
- "1"
- "lts"
- "pre"
group:
- InterfaceI
- InterfaceII
- Initialization
- SymbolicIndexingInterface
- Extensions
- Downstream
- FMI
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v6
- name: "Setup Julia ${{ matrix.version }}"
uses: julia-actions/setup-julia@v2
with:
version: "${{ matrix.version }}"
arch: "${{ runner.arch }}"
- uses: julia-actions/cache@v2
if: ${{ vars.USE_SELF_HOSTED != 'true' }}
with:
token: "${{ secrets.GITHUB_TOKEN }}"
- name: Clone ModelingToolkit
uses: actions/checkout@v6
with:
repository: SciML/ModelingToolkit.jl
path: downstream
- name: "Test ModelingToolkit/${{ matrix.group }}"
env:
GROUP: ${{ matrix.group }}
JULIA_PKG_PRECOMPILE_AUTO: 0
shell: julia --color=yes --check-bounds=yes --depwarn=yes --project=downstream {0}
run: |
using Pkg
@info "dev StateSelection.jl"
Pkg.develop(; path = ".")
@info "dev ModelingToolkitBase.jl"
Pkg.develop(; path = "downstream/lib/ModelingToolkitBase")
@info "dev ModelingToolkitTearing.jl"
Pkg.develop(; path = "lib/ModelingToolkitTearing")
Pkg.test("ModelingToolkit")
- uses: julia-actions/julia-processcoverage@v1
with:
directories: "src,lib/ModelingToolkitTearing/src"
- name: "Report Coverage with Codecov"
uses: codecov/codecov-action@v5
with:
files: lcov.info
token: "${{ secrets.CODECOV_TOKEN }}"
fail_ci_if_error: true