-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (45 loc) · 1.6 KB
/
install.yml
File metadata and controls
52 lines (45 loc) · 1.6 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
name: nrm-install-checks
on:
push:
branches:
- master
pull_request:
jobs:
check-pip-install:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
env:
NRMSO: /home/runner/work/nrm-python/nrm-core/nrm-core-v0.7.0-x86_64-linux/lib/libnrm-core.so
PYNRMSO: /home/runner/work/nrm-python/nrm-core/nrm-core-v0.7.0-x86_64-linux/lib/libnrm-core-python.so
steps:
- uses: actions/checkout@v2
- name: Setup conda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: condaenv
miniconda-version: "latest"
python-version: 3.8
channels: conda-forge
channel-priority: flexible
auto-update-conda: true
- name: Install nrm-core dependencies
run: |
sudo apt-get install pkg-config libzmq3-dev hwloc
- name: Install nrm-core release
run: |
wget https://github.com/anlsys/nrm-core/releases/download/v0.7.0/nrm-core-v0.7.0-x86_64-linux.tar.gz
mkdir ../nrm-core; tar xvf nrm-core-v0.7.0-x86_64-linux.tar.gz -C ../nrm-core
cd ../nrm-core; pwd; ls
- name: Python install and import check
run: |
pip install -e .
wget https://raw.githubusercontent.com/anlsys/nrm-core/master/tests/pyupstream/spawn.py
python spawn.py
- name: Upload nrm log artifacts
if: always()
uses: actions/upload-artifact@v2
with:
name: nrm-logs
path: /tmp/nrm.log