forked from reaktoro/reaktoro
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (68 loc) · 1.88 KB
/
linux.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
name: linux
on:
push:
branches:
- master
pull_request:
schedule:
- cron: "0 5 * * 1" # runs at 05:00 UTC on Mondays
jobs:
build:
runs-on: ubuntu-latest
env:
REAKTORO_USE_OPENLIBM: 1
NUMBER_OF_COMPILATION_JOBS: 2
strategy:
fail-fast: true
max-parallel: 4
matrix:
PY_VER: [3.6, 3.7]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Configuring Cache
id: cache
uses: actions/cache@v2
env:
# Increase this value to reset cache and rebuild the env during the PR
CACHE_NUMBER: 1
with:
path: |
**/build
**/ccache
~/conda_pkgs_dir
key:
${{ runner.os }}-${{ matrix.PY_VER }}-${{ github.ref }}-${{ env.CACHE_NUMBER }}
- uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge
channel-priority: true
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
- name: Configuring Conda Environment
shell: bash -l {0}
env:
PY_VER: ${{ matrix.PY_VER }}
run: |
conda config --set always_yes yes --set changeps1 no
conda config --add channels conda-forge
conda install conda-devenv
conda devenv
- name: Building and Installing Reaktoro
shell: bash -l {0}
env:
PY_VER: ${{ matrix.PY_VER }}
CC: ccache
CXX: ccache
run: |
source activate reaktoro
ccache -s
ccache -z
inv -e compile -n ${{ env.NUMBER_OF_COMPILATION_JOBS }}
ccache -s
python ci/check_compiled_files.py
- name: Testing Reaktoro
shell: bash -l {0}
run: |
source activate reaktoro
pytest . -n auto