-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (36 loc) · 1 KB
/
netsci_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
name: netcalc
on: [push]
jobs:
run:
runs-on: [self-hosted]
env:
repo_token: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Setup anaconda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
channels: bioconda, conda-forge, defaults, anaconda
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
auto-update-conda: true
auto-activate-base: false
activate-environment: netsci
environment-file: netsci.yml
- name: activate netsci conda environment
run: |
source activate netsci
- name: build
run: |
mkdir build
cd build
cmake .. -DCONDA_DIR=$CONDA_PREFIX -DCUDA_ARCHITECTURE=52
cmake --build . -j
make python
- name: ctest
run: |
cd build
ctest
- name: pytest
run: |
pytest