diff --git a/.github/workflows/extra_sys.yml b/.github/workflows/extra_sys.yml index 8eadd4d..4716cca 100644 --- a/.github/workflows/extra_sys.yml +++ b/.github/workflows/extra_sys.yml @@ -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: diff --git a/.github/workflows/gputest.yml b/.github/workflows/gputest.yml new file mode 100644 index 0000000..b973c34 --- /dev/null +++ b/.github/workflows/gputest.yml @@ -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 diff --git a/.github/workflows/lint_and_docs.yml b/.github/workflows/lint_and_docs.yml index 6226798..3a69bfa 100644 --- a/.github/workflows/lint_and_docs.yml +++ b/.github/workflows/lint_and_docs.yml @@ -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 diff --git a/.github/workflows/profile.yml b/.github/workflows/profile.yml index 5b0f358..3d62da4 100644 --- a/.github/workflows/profile.yml +++ b/.github/workflows/profile.yml @@ -3,7 +3,7 @@ name: Data Profile on: [push, pull_request] jobs: - build: + profile: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index e744b2a..0e4fe10 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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: