File: testing_full.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 (76 lines) | stat: -rw-r--r-- 2,403 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Full Testing

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

jobs:

  full_pytest:
    if: github.repository == 'pyg-team/pytorch_geometric'
    runs-on: ${{ matrix.os }}

    strategy:
      max-parallel: 10
      fail-fast: false
      matrix:
        os: [ubuntu-latest, windows-latest, macos-14]
        python-version: ['3.10']
        torch-version: [2.6.0, 2.7.0, 2.8.0, nightly]
        include:
          - torch-version: 2.6.0
            torchvision-version: 0.21.0
          - torch-version: 2.7.0
            torchvision-version: 0.22.0
          - torch-version: 2.8.0
            torchvision-version: 0.23.0
          - torch-version: nightly
            torchvision-version: nightly

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

      - name: Setup packages
        uses: ./.github/actions/setup
        with:
          python-version: ${{ matrix.python-version }}
          torch-version: ${{ matrix.torch-version }}
          torchvision-version: ${{ matrix.torchvision-version }}

      - name: Install graphviz
        if: ${{ runner.os == 'Linux' }}
        run: |
          sudo apt-get install graphviz

      - name: Install main package (torch!=nightly)
        if: ${{ matrix.torch-version != 'nightly' }}
        run: |
          echo "torch==${{ matrix.torch-version }}" > requirements-constraint.txt
          uv pip install -e ".[full,test]" --constraint requirements-constraint.txt
        shell: bash

      - name: Install main package (torch==nightly)
        if: ${{ matrix.torch-version == 'nightly' }}
        run: |
          uv pip install -e ".[full,test]"
        shell: bash

      - 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 --cov --cov-report=xml --durations 10
        shell: bash

      - name: Upload coverage
        uses: codecov/codecov-action@v5
        with:
          fail_ci_if_error: false