-
Notifications
You must be signed in to change notification settings - Fork 90
79 lines (77 loc) · 2.43 KB
/
Integration.yml
File metadata and controls
79 lines (77 loc) · 2.43 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: Integration
on:
pull_request:
paths:
- '.github/workflows/Integration.yml'
- 'ext/**'
- 'lib/**'
- 'src/**'
- 'test/integration/**'
- 'Project.toml'
push:
branches:
- main
paths:
- release-*
- '.github/workflows/Integration.yml'
- 'ext/**'
- 'lib/**'
- 'src/**'
- 'test/integration/**'
- 'Project.toml'
tags: '*'
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
integration:
timeout-minutes: 45
name: Integration Tests - ${{ matrix.package }} - Julia ${{ matrix.version }}
runs-on: ${{ matrix.os }}
container:
image: ${{ (contains(matrix.os, 'linux') && 'ghcr.io/enzymead/reactant-docker-images@sha256:91e1edb7a7c869d5a70db06e417f22907be0e67ca86641d48adcea221fedc674' ) || '' }}
env:
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
strategy:
fail-fast: false
matrix:
version:
- '1.10'
- '1.11'
os:
- linux-x86-n2-32
package:
- Bijectors
- DifferentiationInterface
- Distributions
- DynamicExpressions
- Lux
- SciML
- KernelAbstractions
- Molly
- MPI
exclude:
- version: '1.10'
os: linux-x86-n2-32
package: Molly
steps:
- uses: actions/checkout@v5
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
- uses: julia-actions/cache@v2
- name: "Install Dependencies"
run: |
julia --color=yes --project=test/integration/${{ matrix.package }} --threads=auto --check-bounds=yes -O1 -e 'using Pkg; Pkg.develop([PackageSpec(; path) for path in (".", "lib/EnzymeCore")])'
shell: bash
if: ${{ matrix.version == '1.10' }}
- name: "Instantiate"
run: |
julia --color=yes --project=test/integration/${{ matrix.package }} --threads=auto --check-bounds=yes -O1 -e 'using Pkg; Pkg.instantiate()'
shell: bash
- name: "Run tests"
run: |
julia --color=yes --project=test/integration/${{ matrix.package }} --threads=auto --check-bounds=yes -O1 test/integration/${{ matrix.package }}/runtests.jl
shell: bash