Skip to content

Commit

Permalink
fixed github action
Browse files Browse the repository at this point in the history
  • Loading branch information
awa59kst120df committed Oct 7, 2024
1 parent 510aa10 commit 9e8b8f3
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 389 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:

- name: Install dependencies
run: |
python -m pip install uv
uv pip install --system --no-build-isolation torch==2.1.2
uv pip install --system --no-build-isolation -e .
pip install torch=2.1.2
pip install .
- name: Lint with Ruff
run: |
uv pip install --system ruff
pip install ruff
ruff check .
- name: Run tests
run: |
pip install pytest
python -m unittest discover -s tests
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ graph_attention_student/examples/results/*
graph_attention_student/examples/assets/*

tests/artifacts/*

# slurm logs
slurm-*
69 changes: 69 additions & 0 deletions _pyproject_uv.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[build-system]
requires = ["hatchling>=1.25.0", "setuptools>=70.0.0"]
#build-backend = "hatchling.build"

[project]
name = "graph_attention_student"
version = "0.18.2"
description = "MEGAN: Multi Explanation Graph Attention Network"
requires-python = ">=3.10.0,<3.12"
dependencies = [
"pycomex>=0.13.1",
"visual_graph_datasets>=0.11.0",
"click>=7.1.2,<8.0.0",
"rich_click>=1.8.0,<2.0.0",
"numpy>=1.22.0,<2.0.0",
"matplotlib>=3.5.3,<4.0.0",
"imageio>=2.19.0,<3.0.0",
"seaborn>=0.13.1,<0.14.0",
"cairosvg>=2.5.2,<3.0.0",
"rdkit>=2022.9.1",
"orjson>=3.8.0",
"hdbscan>=0.8.33",
"torch>=2.1.2,<=2.3.1",
"torch_scatter>=2.1.2",
"torch_geometric>=2.1.2",
"lightning>=2.1.3",
"nltk>=3.7,<4.0.0",
"setuptools>=70.0.0",
]

[project.scripts]
graph_attention_student = 'graph_attention_student.cli:cli'

[tool.uv]
no-build-isolation-package = ["torch", "torch_scatter", "torch_geometric"]
dev-dependencies = [
"pytest==8.3.2",
"ruff==0.6.9",
]

[tool.uv.workspace]
exclude = [
"graph_attention_student/experiments/results",
"graph_attention_student/examples/results",
"venv",
]

# Here we define the editable dependencies which are mainly used during development
[tool.uv.sources]
pycomex = { path = "../pycomex" }
visual_graph_datasets = { path = "../visual_graph_datasets" }

# We need to provide some additional metadata for torch_geometric here, specifically
# the fact that it depends on torch because for some reason the package itself does
# not declare this dependency.
[[tool.uv.dependency-metadata]]
name = "torch_geometric"
version = "2.4.0"
requires-dist = [
"torch>=2.1.2,<=2.3.1",
"torch_scatter>=2.1.2",
]

[[tool.uv.dependency-metadata]]
name = "torch-scatter"
version = "2.1.2"
requires-dist = [
"torch>=2.1.2,<=2.3.1",
]
242 changes: 0 additions & 242 deletions custom_model/README.rst

This file was deleted.

Loading

0 comments on commit 9e8b8f3

Please sign in to comment.