Skip to content

Commit 4615679

Browse files
author
Raimondas Galvelis
committed
Clean up dependiences
1 parent e46454c commit 4615679

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ jobs:
3939
key:
4040
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}
4141

42-
- uses: conda-incubator/setup-miniconda@v2
42+
- name: Create a conda environment
43+
uses: conda-incubator/setup-miniconda@v2
4344
with:
4445
activate-environment: torchmd-net
4546
channels: acellera,conda-forge,defaults
@@ -50,12 +51,11 @@ jobs:
5051
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
5152
auto-activate-base: false
5253

53-
- run: which pip
54+
- name: Install the package
55+
run: pip install .
5456

55-
- name: Install pip dependencies
56-
run: |
57-
pip install flake8 pytest
58-
pip install .
57+
- name: List the conda environment
58+
run: conda list
5959

6060
- name: Lint with flake8
6161
run: |
@@ -66,4 +66,4 @@ jobs:
6666
6767
- name: Run tests
6868
run: |
69-
pytest
69+
pytest

environment.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,20 @@ channels:
33
- raimis
44
- conda-forge
55
dependencies:
6+
- ase
7+
- h5py
68
- matplotlib
79
- pip
810
- python
9-
- pytorch
11+
- pytorch==1.10.0
1012
# The official PyTorch Geometric package is not compatible with conda-forge,
1113
# while the package on conda-forge is broken
1214
# (https://github.com/pyg-team/pytorch_geometric/issues/3660).
1315
# Until a better solution is found a have custom package to plug the gap.
1416
- raimis::pytorch-geometric==2.0.2
1517
- pytorch-lightning==1.5.8
16-
- h5py
17-
- tqdm
18+
- setuptools==59.5.0 # Pin due to https://github.com/pytorch/pytorch/pull/69904
19+
- tqdm
20+
# Dev tools
21+
- flake8
22+
- pytest

requirements.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +0,0 @@
1-
pytorch-lightning==1.3.8
2-
matplotlib
3-
scipy
4-
h5py
5-
ase

0 commit comments

Comments
 (0)