Skip to content

Commit 8babbce

Browse files
authored
Feat/ci update (#14)
* changing ci setup to minimal setup with conda installs instead of pip * requirements.txt not needed
1 parent 9728e2f commit 8babbce

File tree

3 files changed

+34
-20
lines changed

3 files changed

+34
-20
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,24 @@ on:
1313
jobs:
1414
build:
1515
runs-on: ${{ matrix.os }}
16-
16+
1717
strategy:
1818
matrix:
1919
os: ["ubuntu-latest"]
20-
python: ["3.10","3.11","3.12","3.13"]
20+
python: ["3.10", "3.11", "3.12", "3.13"]
2121

2222
steps:
23-
- name: Checkout source
24-
uses: actions/checkout@v4
23+
- uses: actions/checkout@v3
2524

26-
- name: Setup Python ${{ matrix.python }}
25+
- name: Set up Python
2726
uses: actions/setup-python@v5
2827
with:
29-
python-version: ${{ matrix.python }}
28+
python-version: ${{ matrix.python-version }}
3029

31-
- name: Install dependencies
30+
- name: Install tox
3231
run: |
3332
python -m pip install --upgrade pip
34-
pip install pytest
35-
pip install -r requirements.txt
33+
pip install tox
3634
37-
- name: Test with pytest
38-
run: |
39-
pytest
35+
- name: Run tox
36+
run: tox

requirements.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

tox.ini

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[tox]
2+
envlist =
3+
py3{10-13}
4+
isolated_build = true
5+
requires = tox-conda
6+
7+
[testenv]
8+
setenv =
9+
CONDA_DLL_SEARCH_MODIFICATION_ENABLE = 1
10+
11+
allowlist_externals =
12+
conda
13+
pip
14+
15+
conda_channels =
16+
conda-forge
17+
18+
conda_deps =
19+
pytest
20+
21+
commands =
22+
conda install -q -c conda-forge rdkit scikit-learn jupyter ca-certificates certifi openssl matplotlib ipywidgets py3Dmol pytest mdtraj pytest-cov tqdm
23+
pip install .
24+
pytest
25+

0 commit comments

Comments
 (0)