File: testing_full_gpu.yml

package info (click to toggle)
pytorch-geometric 2.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,172 kB
  • sloc: python: 144,911; sh: 247; cpp: 27; makefile: 18; javascript: 16
file content (42 lines) | stat: -rw-r--r-- 1,158 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Full GPU Testing

on:  # yamllint disable-line rule:truthy
  workflow_dispatch:
  # schedule:
  #   - cron: "0 6 * * *"  # Everyday at 6:00am UTC/10:00pm PST

jobs:

  full_gpu_pytest:
    if: github.repository == 'pyg-team/pytorch_geometric'
    runs-on: [self-hosted, nvidia]

    steps:
      - name: Checkout repository
        uses: actions/checkout@v5

      - name: Setup packages
        uses: ./.github/actions/setup
        with:
          cuda-version: 'cu128'

      - name: Print GPU information
        run: |
          nvidia-smi

      - name: Install main package
        run: |
          uv pip install -e ".[full,test]"

      - name: Check installation
        run: |
          uv run --no-project python -c "import torch; print('PyTorch:', torch.__version__)"
          uv run --no-project python -c "import torch; print('CUDA available:', torch.cuda.is_available())"
          uv run --no-project python -c "import torch; print('CUDA:', torch.version.cuda)"
        shell: bash

      - name: Run tests
        timeout-minutes: 20
        run: |
          FULL_TEST=1 uv run --no-project pytest --durations 10
        shell: bash