Skip to content

Commit e85bbbc

Browse files
add workflow for tests, provide repo deps
1 parent 55a82b8 commit e85bbbc

File tree

2 files changed

+47
-9
lines changed

2 files changed

+47
-9
lines changed

.github/workflows/tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: tests
2+
3+
permissions:
4+
contents: read
5+
6+
on: [push]
7+
8+
jobs:
9+
build-linux:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
max-parallel: 5
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up Python 3.10
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.10'
20+
- name: Add conda to system path
21+
run: |
22+
echo $CONDA/bin >> $GITHUB_PATH
23+
- name: Install care
24+
run: |
25+
conda create -n gnn python=3.10
26+
source $CONDA/etc/profile.d/conda.sh
27+
conda activate gnn
28+
pip install .
29+
- name: Test with pytest
30+
run: |
31+
source $CONDA/etc/profile.d/conda.sh
32+
conda activate gnn
33+
pip install pytest
34+
pytest

pyproject.toml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ name = "gamenet-uq"
77
version = "0.1.0"
88
requires-python = ">=3.10"
99
dependencies = [
10-
"ase",
11-
"torch >= 2.4.",
12-
"torch-geometric >= 2.5",
13-
"networkx",
14-
"scikit-learn",
15-
"matplotlib",
16-
"scipy"
17-
"numpy"
10+
"numpy>=1.24.0",
11+
"pandas>=2.0.0",
12+
"scipy>=1.10.0",
13+
"scikit-learn>=1.3.0",
14+
"torch>=2.0.0",
15+
"torch_geometric>=2.7.0",
16+
"ase>=3.22.0",
17+
"rdkit>=2023.3.3",
18+
"matplotlib>=3.4.0",
19+
"seaborn>=0.13.0",
20+
"networkx>=3.1",
21+
"tqdm>=4.65.0",
1822
]
1923

2024
authors = [
@@ -29,7 +33,7 @@ license = {file = "LICENSE"}
2933
keywords = ["heterogeneous catalysis", "adsorption energy", "kinetics", "machine learning", "transition metals"]
3034
classifiers = [
3135
"Development Status :: 4 - Beta",
32-
"Programming Language :: Python :: 3.12"
36+
"Programming Language :: Python :: 3.10"
3337
]
3438

3539
[project.optional-dependencies]

0 commit comments

Comments
 (0)