Skip to content

Commit

Permalink
get gh workflows working (#116)
Browse files Browse the repository at this point in the history
* initual guess for github workflow

* try moving it to the job instead

* try pulling code into the docker

* syntax

* initial try to get the complete workflow

* use quates for lines with brackets in yml files...

* nvm, strip extra ':' instead

* use multiline run statements instead:

* install into the base conda env instead

* go to single line run instead
  • Loading branch information
sroet authored Feb 21, 2024
1 parent baf5e5b commit 6f4bf0e
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,20 @@ on:
# Weekly on saturday 23:59
- cron: "59 23 * * 6"

defaults:
runs-on: [self-hosted, linux, x64, gpu]
container:
image: continuumio/miniconda3
options: --runtime=nvidia --gpus all

jobs:
test_suite:
runs-on: [self-hosted, linux, x64, gpu]
container:
image: continuumio/miniconda3
options: --runtime=nvidia --gpus all
steps:
- name: check running dir
run: ls -a .
- name: test-gpu-avail
run: nvidia-smi
- name: Pull code
uses: actions/checkout@v4
- name: Install dependencies
run: conda install -y -c conda-forge python=3 cupy cuda-version=11.8
- name: Install code and list dependencies
run: |
python -m pip install .[plotting]
conda list
- name: Run tests
run: cd tests && python -m unittest discover

0 comments on commit 6f4bf0e

Please sign in to comment.