-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (34 loc) · 992 Bytes
/
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
name: netcalc
on: [push, workflow_dispatch]
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
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
auto-update-conda: true
auto-activate-base: true
- name: Install netcalc dependencies
run: |
conda install -c conda-forge swig boost numpy cmake pytest
- 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