name: Tests on: push: branches: [master] pull_request: branches: [master, "release/*", "dev"] jobs: run_tests_ubuntu: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: ["ubuntu-latest"] python-version: ["3.8", "3.9", "3.10"] timeout-minutes: 20 steps: - name: Checkout uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} # the mkdir command bypasses a profiler error, which allows us to run it # with host code only to at least check that the profiler parameters are # correctly provided - name: Install CUDA tools run: | sudo apt update sudo apt install nvidia-cuda-toolkit mkdir -p /usr/lib/x86_64-linux-gnu/nsight-compute/sections - name: Install Python dependencies run: | python -m pip install --upgrade pip pip install -r tests/requirements.txt - name: List dependencies run: | python -m pip list - name: Run pytest run: | pytest -v