-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (65 loc) · 1.86 KB
/
CI.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
name: CI
env: {}
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: "32 21 * * *"
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9"]
steps:
- name: install glut
run: sudo apt-get update && sudo apt-get install -y freeglut3-dev libglu1-mesa
- name: install latex
run: sudo apt-get install -y texlive-latex-extra
- name: Check out source code
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: unzip test data
shell: pwsh
run: |
unzip tests/data/PbTe-CNCS-HH4-Ei_12-E_5-q_0/dhkls.npy.zip -d tests/data/PbTe-CNCS-HH4-Ei_12-E_5-q_0
ls -tl tests/data/beam/ARCS/100meV/out/neutrons
- name: ~/.mantid
run: git clone https://github.com/yxqd/dotmantid ~/.mantid
# setup conda
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
activate-environment: test
python-version: ${{ matrix.python-version }}
channels: mcvine,conda-forge
# install deps
- name: install deps
shell: pwsh
run: |
conda install mamba
mamba install mcvine mantid-framework=6 pytest click=7 tqdm pylatex lmfit cloudpickle scikit-image=0.15
mcvine
env:
PYTHON_VERSION: ${{ matrix.python-version }}
- name: checking
shell: pwsh
run: |
pwd
find
env:
PYTHON_VERSION: ${{ matrix.python-version }}
- name: install/build/test
shell: pwsh
run: |
./builders/github-actions/build_and_test.sh
env:
PYTHON_VERSION: ${{ matrix.python-version }}