Skip to content

feat: enabled self-hosted CI. #77

feat: enabled self-hosted CI.

feat: enabled self-hosted CI. #77

Workflow file for this run

name: netcalc
on: [ push, workflow_dispatch ]
jobs:
run:
runs-on: [ self-hosted ]
env:
repo_token: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.3.1-0'
environment-file: netsci.yml
init-shell: >-
bash
powershell
cache-environment: true
post-cleanup: 'all'
- 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