Skip to content

Commit

Permalink
Merge pull request #126 from mcvine/self-hosted-github-runner
Browse files Browse the repository at this point in the history
Use Self-hosted GitHub runner to run GPU tests
  • Loading branch information
yxqd authored Jan 5, 2024
2 parents 81d43c6 + 504b01c commit 3ce7fc7
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
schedule:
- cron: "00 17 * * *"
workflow_dispatch:

jobs:
build-and-test:
runs-on: ${{ matrix.os }}
Expand All @@ -24,7 +24,7 @@ jobs:
steps:
- name: install glut
run: sudo apt-get update && sudo apt-get install -y procps freeglut3-dev libglu1-mesa unzip

- name: Check out source code
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -69,3 +69,40 @@ jobs:
python instruments/VERDI/test_verdi_cpu.py
env:
NUMBA_ENABLE_CUDASIM: 1

build-and-test-self-hosted:
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
steps:
- name: Check out source code
uses: actions/checkout@v2
with:
fetch-depth: 0

# install deps and build
- name: install / build
run: |
eval "$(/home/docker/miniconda3/bin/conda shell.bash hook)"
conda remove -n testenv --all
conda create -n testenv python=${{ matrix.python-version }}
conda activate testenv
conda install pytest pytest-cov coveralls openmpi mcvine-core=1.4.9
python -c "import matplotlib"
mcvine
conda install numba=0.53.1 cupy cudatoolkit=11.2.2
python setup.py sdist
pip install --no-deps .
python -m "mcvine.acc.patch_numba"
# test
- name: test
run: |
eval "$(/home/docker/miniconda3/bin/conda shell.bash hook)"
conda activate testenv
cd tests
py.test
python instruments/VERDI/test_verdi_cpu.py

0 comments on commit 3ce7fc7

Please sign in to comment.