-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
69 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,82 @@ | ||
name: gpu-ci | ||
name: GPU CI | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
branches: | ||
- main | ||
- "pull-request/[0-9]+" | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
pull_request: | ||
branches: [main] | ||
types: [opened, synchronize, reopened] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
gpu-ci-tensorflow: | ||
runs-on: linux-amd64-gpu-p100-latest-1 | ||
Check failure on line 14 in .github/workflows/gpu.yml GitHub Actions / actionlint
Check failure on line 14 in .github/workflows/gpu.yml GitHub Actions / actionlint
|
||
container: | ||
image: nvcr.io/nvidia/merlin/merlin-tensorflow:nightly | ||
env: | ||
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }} | ||
options: --shm-size=1G | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run tests | ||
run: | | ||
pip install tox | ||
PYTEST_MARKERS="unit and not (examples or integration or notebook) and (singlegpu or not multigpu) $extra_pytest_markers" MERLIN_BRANCH=$branch COMPARE_BRANCH=${{ github.base_ref }} tox -e gpu | ||
jobs: | ||
Check failure on line 29 in .github/workflows/gpu.yml GitHub Actions / actionlint
|
||
gpu-ci: | ||
runs-on: 1GPU | ||
gpu-ci-pytorch: | ||
runs-on: linux-amd64-gpu-p100-latest-1 | ||
container: | ||
image: nvcr.io/nvidia/merlin/merlin-pytorch:nightly | ||
env: | ||
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }} | ||
options: --shm-size=1G | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run tests | ||
run: | | ||
pip install tox | ||
PYTEST_MARKERS="unit and not (examples or integration or notebook) and (singlegpu or not multigpu) $extra_pytest_markers" MERLIN_BRANCH=$branch COMPARE_BRANCH=${{ github.base_ref }} tox -e gpu | ||
jobs: | ||
Check failure on line 47 in .github/workflows/gpu.yml GitHub Actions / actionlint
|
||
gpu-ci-tensorflow-examples: | ||
runs-on: linux-amd64-gpu-p100-latest-1 | ||
container: | ||
image: nvcr.io/nvidia/merlin/merlin-tensorflow:nightly | ||
env: | ||
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }} | ||
options: --shm-size=1G | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run tests | ||
run: | | ||
ref_type=${{ github.ref_type }} | ||
branch=main | ||
if [[ $ref_type == "tag"* ]] | ||
then | ||
git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/release*:refs/remotes/origin/release* | ||
branch=$(git branch -r --contains ${{ github.ref_name }} --list '*release*' --format "%(refname:short)" | sed -e 's/^origin\///') | ||
fi | ||
if [[ "${{ github.ref }}" != 'refs/heads/main' ]]; then | ||
extra_pytest_markers="and changed" | ||
fi | ||
cd ${{ github.workspace }}; PYTEST_MARKERS="unit and not (examples or integration or notebook) and (singlegpu or not multigpu) $extra_pytest_markers" MERLIN_BRANCH=$branch COMPARE_BRANCH=${{ github.base_ref }} tox -e gpu | ||
tests-examples: | ||
runs-on: 1GPU | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run tests | ||
run: | | ||
pip install tox | ||
PYTEST_MARKERS="(examples or notebook) $extra_pytest_markers" tox -e gpu | ||
jobs: | ||
Check failure on line 65 in .github/workflows/gpu.yml GitHub Actions / actionlint
|
||
gpu-ci-pytorch-examples: | ||
runs-on: linux-amd64-gpu-p100-latest-1 | ||
container: | ||
image: nvcr.io/nvidia/merlin/merlin-pytorch:nightly | ||
env: | ||
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }} | ||
options: --shm-size=1G | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run tests | ||
run: | | ||
ref_type=${{ github.ref_type }} | ||
branch=main | ||
if [[ $ref_type == "tag"* ]] | ||
then | ||
git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/release*:refs/remotes/origin/release* | ||
branch=$(git branch -r --contains ${{ github.ref_name }} --list '*release*' --format "%(refname:short)" | sed -e 's/^origin\///') | ||
fi | ||
if [[ "${{ github.ref }}" != 'refs/heads/main' ]]; then | ||
extra_pytest_markers="and changed" | ||
fi | ||
cd ${{ github.workspace }}; PYTEST_MARKERS="(examples or notebook) $extra_pytest_markers" MERLIN_BRANCH=$branch COMPARE_BRANCH=${{ github.base_ref }} tox -e gpu | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run tests | ||
run: | | ||
pip install tox | ||
PYTEST_MARKERS="(examples or notebook) $extra_pytest_markers" tox -e gpu | ||