Full Testing #4
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
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: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: ['3.8', '3.10'] | |
torch-version: [1.12.0, 1.13.0, 2.0.0, 2.1.0, nightly] | |
include: | |
- torch-version: 1.12.0 | |
torchvision-version: 0.13.0 | |
- torch-version: 1.13.0 | |
torchvision-version: 0.14.0 | |
- torch-version: 2.0.0 | |
torchvision-version: 0.15.0 | |
- torch-version: 2.1.0 | |
torchvision-version: 0.16.0 | |
- torch-version: nightly | |
torchvision-version: nightly | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- 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 | |
run: | | |
pip install -e .[full,test] | |
- name: Run tests | |
run: | | |
FULL_TEST=1 pytest --cov --cov-report=xml | |
shell: bash | |
- name: Upload coverage | |
uses: codecov/codecov-action@v2 | |
with: | |
fail_ci_if_error: false |