Skip to content

Commit

Permalink
feat: enabled CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
amstokely committed Nov 27, 2023
1 parent 71821f0 commit c7b8cfb
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions .github/workflows/netsci_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,20 @@ jobs:
env:
repo_token: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Setup anaconda
uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
channels: bioconda, conda-forge, defaults, anaconda
packages: cmake, swig, pytest, doxygen, boost, numpy
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: build
run: |
${CONDA}/bin/activate test
apt install cmake -y
mkdir build
cd build
cmake .. -DCONDA_DIR=$CONDA_PREFIX -DCUDA_ARCHITECTURE=52
cmake --build . -j
make python
- name: ctest
environment-file: netsci.yml
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
activate-environment: netsci
name: build
shell: bash -l {0}
run: |
mkdir build
cd build
ctest
- name: pytest
run: |
pytest
cmake ..

0 comments on commit c7b8cfb

Please sign in to comment.