Add self-hosted runner for GPU checks (#339)
This commit is contained in:
parent
5057b5c89e
commit
f68cb78ed7
4
.github/workflows/extra_sys.yml
vendored
4
.github/workflows/extra_sys.yml
vendored
@ -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
24
.github/workflows/gputest.yml
vendored
Normal 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
|
2
.github/workflows/lint_and_docs.yml
vendored
2
.github/workflows/lint_and_docs.yml
vendored
@ -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
|
||||
|
2
.github/workflows/profile.yml
vendored
2
.github/workflows/profile.yml
vendored
@ -3,7 +3,7 @@ name: Data Profile
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
profile:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
4
.github/workflows/pytest.yml
vendored
4
.github/workflows/pytest.yml
vendored
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user