forked from metatensor/metatensor
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (60 loc) · 1.94 KB
/
Copy pathjulia-tests.yml
File metadata and controls
74 lines (60 loc) · 1.94 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
name: Julia tests
on:
push:
branches: [main]
pull_request:
# Check all PR
concurrency:
group: julia-tests-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
julia-tests:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} / Julia ${{ matrix.julia-version }}
container: ${{ matrix.container }}
strategy:
matrix:
include:
- os: ubuntu-24.04
julia-version: "1.6"
- os: ubuntu-24.04
julia-version: "1.9"
- os: macos-15
julia-version: "1.9"
# TODO
# - os: windows-2022
# julia-version: "1.9"
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: setup Julia
uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
- name: setup rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Cache Rust dependencies
uses: Leafwing-Studios/cargo-cache@v2.6.1
with:
sweep-cache: true
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.9
with:
version: "v0.10.0"
- name: Setup sccache environnement variables
run: |
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
- name: setup package
run: |
julia -e 'using Pkg; Pkg.add(url="https://github.com/Luthaf/Metatensor_jll.jl")'
julia -e 'using Pkg; Pkg.develop(path="./julia")'
- name: build local version of libmetatensor
run: julia julia/deps/build_local.jl
- name: run tests
run: julia --check-bounds=yes --inline=no -e 'using Pkg; Pkg.test("Metatensor"; coverage=true)'