Skip to content

Commit 998d6c8

Browse files
authored
Fix tests (#14)
* Separates tests for different envs * Adds explicit dependencies for the black boxes * updates requirements to match poli-baselines * Moves a dependency to git in all envs * Fixes name of dependency * Adds a missing init file * Removes strong dependency on ehrlich * Moves some assets to inside the package * Updates the loading of the metadata in VAESelfies * Adds the network weights as assets * Updates the loading up of the models to use the assets * Fixes a misspecified path, cleans old models * adds timeout and modifies run conditions on actions
1 parent 23636c5 commit 998d6c8

20 files changed

+132
-47
lines changed

.github/workflows/tox-lint-and-pytest.yml renamed to .github/workflows/hdbo-ax.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1-
name: Tests on hdbo (conda, python 3.10)
1+
name: Tests on hdbo ax (python 3.10)
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened, ready_for_review, closed]
9+
branches:
10+
- master
11+
schedule:
12+
- cron: '0 0 * * 0'
413

514
jobs:
615
build-linux:
716
runs-on: ubuntu-latest
17+
timeout-minutes: 15
18+
if: github.event.pull_request.draft == false
819
strategy:
920
max-parallel: 5
1021

@@ -21,6 +32,6 @@ jobs:
2132
- name: Install dependencies
2233
run: |
2334
python -m pip install tox
24-
- name: Check linting and tests with tox
35+
- name: Check tests in ax env using tox
2536
run: |
26-
tox
37+
tox -e hdbo-ax-py310

.github/workflows/hdbo-base.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Tests on hdbo base (conda, python 3.10)
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened, ready_for_review, closed]
9+
branches:
10+
- master
11+
schedule:
12+
- cron: '0 0 * * 0'
13+
14+
jobs:
15+
build-linux:
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 8
18+
if: github.event.pull_request.draft == false
19+
strategy:
20+
max-parallel: 5
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Set up Python 3.10
25+
uses: actions/setup-python@v3
26+
with:
27+
python-version: '3.10'
28+
- name: Add conda to system path
29+
run: |
30+
# $CONDA is an environment variable pointing to the root of the miniconda directory
31+
echo $CONDA/bin >> $GITHUB_PATH
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install tox
35+
- name: Check linting
36+
run: |
37+
tox -e formatting-py310
38+
- name: Check tests with tox on base env
39+
run: |
40+
tox -e hdbo-base-py310

.github/workflows/hdbo-baxus.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Tests on hdbo baxus (python 3.10)
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened, ready_for_review, closed]
9+
branches:
10+
- master
11+
schedule:
12+
- cron: '0 0 * * 0'
13+
14+
jobs:
15+
build-linux:
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 8
18+
if: github.event.pull_request.draft == false
19+
strategy:
20+
max-parallel: 5
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Set up Python 3.10
25+
uses: actions/setup-python@v3
26+
with:
27+
python-version: '3.10'
28+
- name: Add conda to system path
29+
run: |
30+
# $CONDA is an environment variable pointing to the root of the miniconda directory
31+
echo $CONDA/bin >> $GITHUB_PATH
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install tox
35+
- name: Check tests with tox on baxus env
36+
run: |
37+
tox -e hdbo-baxus-py310

0 commit comments

Comments
 (0)