-
Notifications
You must be signed in to change notification settings - Fork 89
61 lines (57 loc) · 1.94 KB
/
ci.yaml
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
name: CI
on:
push:
branches:
- master
tags: ['*']
pull_request:
schedule:
- cron: '0 4 * * 6' # Run every Saturday
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:
test:
name: Julia ${{ matrix.mode }} - ${{ matrix.os }} - ${{ matrix.payload }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- {mode: stable, os: ubuntu-latest, payload: noslow-example }
- {mode: stable, os: macOS-latest, payload: noslow }
- {mode: stable, os: windows-latest, payload: noslow }
- {mode: stable, os: ubuntu-latest, payload: noslow-mpi }
- {mode: latest, os: ubuntu-latest, payload: noslow }
env:
GKS_ENCODING: utf8
GKSwstype: 100 # Needed for Plots-related tests
PLOTS_TEST: true # Needed for Plots-related tests
DFTK_TEST_NPROCS: 2 # For MPI parallelised tests
steps:
- uses: actions/checkout@v4
- name: Setup Julia stable
uses: julia-actions/setup-julia@v1
with:
version: '1.10'
arch: x64
if: ${{ matrix.mode == 'stable' }}
- name: Setup Julia latest (pre-releases included)
uses: julia-actions/setup-julia@v1
with:
version: '1'
include-all-prereleases: true
arch: x64
if: ${{ matrix.mode == 'latest' }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
DFTK_TEST_ARGS: ${{ matrix.payload }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v4
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}