-
Notifications
You must be signed in to change notification settings - Fork 5
100 lines (73 loc) · 2.71 KB
/
weekly.yml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Weekly
on:
schedule: # run at midnight pacific time on Mondays
- cron: '0 8 * * 1'
workflow_dispatch: # run on button-press in Actions tab
concurrency: # only allow the most recent workflow to execute
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env: # environment variables
julia_version: '1.7.2' # julia version to use on all runners (except cross-platform)
jobs: # run in parallel within workflow
load-order: # test that Xtals, PorousMaterials, XtalsML, and PoreMatMod can all be loaded simultaneously, and in any order
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: checkout commit
uses: actions/checkout@master
- name: set up Julia
uses: julia-actions/setup-julia@latest
with:
version: ${{ env.julia_version }}
- name: build package
uses: julia-actions/julia-buildpkg@latest
- name: install dependencies
run: julia --project -e 'import Pkg; Pkg.add.(["PorousMaterials", "PoreMatMod", "XtalsPyTools", "Combinatorics"])'
- name: load order
run: |
julia --project .github/workflow_extras/write_load_combos.jl Xtals PorousMaterials PoreMatMod XtalsPyTools
bash load_combos.sh
cross-platform-os:
strategy:
fail-fast: true
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- name: checkout commit
uses: actions/checkout@master
- name: set up Julia
uses: julia-actions/setup-julia@latest
with:
version: ${{ env.julia_version }}
- name: build package
uses: julia-actions/julia-buildpkg@latest
- name: install dependencies
run: julia --project --color=yes -e 'import Pkg; Pkg.add("Documenter")'
shell: bash
- name: run tests
run: julia --project --color=yes -e 'import Pkg; Pkg.test()'
shell: bash
cross-platform-julia:
strategy:
fail-fast: true
matrix:
julia: ['1.6.4', '1.7.0']
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: checkout commit
uses: actions/checkout@master
- name: set up Julia
uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia }}
- name: build package
uses: julia-actions/julia-buildpkg@latest
- name: install dependencies
run: julia --project --color=yes -e 'import Pkg; Pkg.add("Documenter")'
shell: bash
- name: run tests
run: doctest=false julia --project --color=yes -e 'import Pkg; Pkg.test()'
shell: bash