Add self-hosted runner for GPU checks (#339)

This commit is contained in:
n+e 2021-04-18 16:57:37 +08:00 committed by GitHub
parent 5057b5c89e
commit f68cb78ed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 6 deletions

View File

@ -1,9 +1,9 @@
name: Unittest
name: Windows/MacOS
on: [push, pull_request]
jobs:
build:
cpu-extra:
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, 'ci skip')"
strategy:

24
.github/workflows/gputest.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Ubuntu GPU
on: [push, pull_request]
jobs:
gpu:
runs-on: [self-hosted, Linux, X64]
if: "!contains(github.event.head_commit.message, 'ci skip')"
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Upgrade pip
run: |
python -m pip install --upgrade pip setuptools wheel
- name: Install dependencies
run: |
python -m pip install ".[dev]" --upgrade
- name: Test with pytest
# ignore test/throughput which only profiles the code
run: |
pytest test --ignore-glob='*profile.py' --cov=tianshou --cov-report=xml --durations=0 -v

View File

@ -3,7 +3,7 @@ name: PEP8, Types and Docs Check
on: [push, pull_request]
jobs:
build:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

View File

@ -3,7 +3,7 @@ name: Data Profile
on: [push, pull_request]
jobs:
build:
profile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

View File

@ -1,9 +1,9 @@
name: Unittest
name: Ubuntu
on: [push, pull_request]
jobs:
build:
cpu:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
strategy: