Skip to content

Merge pull request #169 from rllm-team/develop #259

Merge pull request #169 from rllm-team/develop

Merge pull request #169 from rllm-team/develop #259

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python package
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu
pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.3.0+cpu.html
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with examples
run: |
cd examples
python tab_transformer.py --epochs 1
python ft_transformer.py --epochs 1
python tab_transformer.py --epochs 1
python rect.py
python ogc.py
python han.py
python gcn.py --epochs 1
python gat.py --epochs 1
python bridge/bridge_tacm12k.py --epochs 1
python bridge/bridge_tlf2k.py --epochs 1
python bridge/bridge_tml1m.py --epochs 1