Skip to content

Run tests outside of tox #337

Run tests outside of tox

Run tests outside of tox #337

Workflow file for this run

name: GPU Tests
on:
workflow_dispatch:
push:
branches:
- main
- pull-request/*
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
gpu-tests:
runs-on: linux-amd64-gpu-p100-latest-1
container:
image: nvidia/cuda:11.8.0-devel-ubuntu22.04
env:
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Ubuntu packages
run: |
apt-get update -y
apt-get install -y build-essential protobuf-compiler git lsb-release 'libcudnn8=*cuda11.8'
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install and upgrade python packages
run: |
python -m pip install --upgrade pip setuptools==59.4.0 wheel tox pybind11
python -m pip uninstall protobuf -y
python -m pip install --no-binary=protobuf protobuf
- name: Get Branch name
id: get-branch-name
uses: NVIDIA-Merlin/.github/actions/branch-name@branch-name-pull-request
- name: Run tests
run: |
merlin_branch="${{ steps.get-branch-name.outputs.branch }}"
rapids_version=23.04
python -m pip instll -r requirements/test.txt
python -m pip install \
nvidia-cudnn-cu11==8.6.0.163 \
cudf-cu11==${rapids_version} dask-cudf-cu11==${rapids_version} \
git+https://github.com/NVIDIA-Merlin/core.git@${merlin_branch} \
git+https://github.com/NVIDIA-Merlin/dataloader.git@${merlin_branch} \
git+https://github.com/NVIDIA-Merlin/models.git@${merlin_branch} \
git+https://github.com/NVIDIA-Merlin/core.git@${merlin_branch} \
--extra-index-url=https://pypi.nvidia.com