Skip to content

Commit

Permalink
feat: enabled self-hosted CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
amstokely committed Nov 27, 2023
1 parent ba6f6d7 commit 644794e
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions .github/workflows/netsci_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,29 @@ jobs:
env:
repo_token: ${{ secrets.GITHUB_TOKEN }}
steps:
- steps:
- uses: actions/checkout@v2
- name: Setup anaconda
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: |
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
- name: Setup anaconda
uses: actions/setup-python@v2
with:
python-version: 3.10.5
- name: Install netsci dependencies
run: |
conda install -c conda-forge swig boost numpy cmake pytest
- name: build
run: |
mkdir build
cd build
cmake .. -DCONDA_DIR=$CONDA_PREFIX
cmake --build . -j
make python
- name: ctest
run: |
cd build
ctest
- name: pytest
run: |
cd tests/cuarray/python
pytest
cd ../../netsci/python
pytest

0 comments on commit 644794e

Please sign in to comment.