Skip to content

Commit

Permalink
Fix tests (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostedoyster authored Jul 24, 2024
1 parent e14207b commit b2fc734
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 89 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Alchemical Model tests
name: Architecture tests

on:
push:
Expand All @@ -8,6 +8,14 @@ on:

jobs:
tests:
strategy:
matrix:
include:
- architecture-name: alchemical-model
- architecture-name: gap
- architecture-name: soap-bpnn
- architecture-name: pet

runs-on: ubuntu-22.04

steps:
Expand All @@ -19,8 +27,8 @@ jobs:
python-version: "3.12"
- run: pip install tox

- name: run Alchemical Model tests
run: tox -e alchemical-model-tests
- name: run architecture tests
run: tox -e ${{ matrix.architecture-name }}-tests
env:
# Use the CPU only version of torch when building/running the code
PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu
32 changes: 0 additions & 32 deletions .github/workflows/gap-tests.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/pet-tests.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/soap-bpnn-tests.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:

jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
Expand All @@ -22,6 +21,8 @@ jobs:
# - os: windows-2019
# python-version: "3.12"

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ deps =
extras = alchemical-model
changedir = src/metatrain/experimental/alchemical_model/tests/
commands =
pytest {posargs}
; pytest {posargs}

[testenv:pet-tests]
description = Run PET tests with pytest
Expand All @@ -115,6 +115,8 @@ deps =
extras = pet
changedir = src/metatrain/experimental/pet/tests/
commands =
python -m pip uninstall -y pet
python -m pip install "pet @ git+https://github.com/spozdn/pet.git@1a470c4" --no-build-isolation
pytest {posargs}

[testenv:gap-tests]
Expand Down

0 comments on commit b2fc734

Please sign in to comment.