Skip to content

Examples

Examples #449

Workflow file for this run

name: Examples
on:
workflow_dispatch:
schedule:
- cron: '59 23 * * *'
jobs:
run_examples:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8, 3.9]
include:
- pyg-version: 2.0.4
torch-version: 1.12.1
torchvision-version: 0.13.1
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install torch==${{ matrix.torch-version }}+cpu torchvision==${{ matrix.torchvision-version }}+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install torch-geometric[full]==${{ matrix.pyg-version }} torch-scatter torch-sparse torch-cluster -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html
pip install -r requirements.txt
- name: Install OBNB
run: |
pip install -e .
- name: Execute example scripts
shell: bash
run: |
cd example
for script in $(ls *.py); do
if [[ $script == n2v_hypertune_studybias_holdout.py ]] || [[ $script == sample_classification.py ]]; then
continue
fi
echo Start running example script: $script
python $script
done