-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (59 loc) · 1.73 KB
/
Copy pathCI.yml
File metadata and controls
68 lines (59 loc) · 1.73 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
name: CI
env: {}
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: "00 02 * * *"
workflow_dispatch:
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: Check out source code
uses: actions/checkout@v2
with:
fetch-depth: 0
- 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/label/unstable,mcvine,mantid/label/nightly,mantid,diffpy,conda-forge
# use mamba solver
- name: use mamba solver in conda
shell: pwsh
run: |
# conda update -n base conda
conda install -n base conda-libmamba-solver
conda config --set solver libmamba
# install deps and build
- name: install / build / test
shell: pwsh
run: |
conda install mcvine.instruments mpich
mcvine
./builders/github-actions/build_and_test.sh
env:
PYTHON_VERSION: ${{ matrix.python-version }}
- name: conda build and upload
shell: pwsh
run: |
./builders/github-actions/conda_build_and_upload.sh
env:
PYTHON_VERSION: ${{ matrix.python-version }}
CONDA_UPLOAD_TOKEN: ${{ secrets.ANACONDA_TOKEN }}