Skip to content

Commit 58c35ba

Browse files
authored
Add unittests for pyiron_atomistics (#1)
* Add unittests * Add setuptools * Test with latest pyiron_atomistics version * fix version * black fix * extend integration tests * fixes for LAMMPS * fix pyiron_atomistics version * debug sphinx tests * more debugging * next try * more fixes * final value * test different pyiron_atomistics versions * Only two pyiron_atomistics versions are currently supported * Remove unused class
1 parent 9588879 commit 58c35ba

17 files changed

+2022
-33
lines changed

.ci_support/environment-mini.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
channels:
2+
- conda-forge
3+
dependencies:
4+
- h5io_browser =0.1.2
5+
- pint =0.24.3
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
channels:
2+
- conda-forge
3+
dependencies:
4+
- jupyter
5+
- papermill
6+
- pyiron-data =0.0.30
7+
- pyiron_atomistics =0.6.12
8+
- lammps =2024.02.07=*_openmpi_*
9+
- sphinxdft =3.1
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
channels:
2+
- conda-forge
3+
dependencies:
4+
- jupyter
5+
- papermill
6+
- pyiron-data =0.0.30
7+
- pyiron_atomistics =0.6.13
8+
- lammps =2024.02.07=*_openmpi_*
9+
- sphinxdft =3.1

.github/workflows/minimal.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Minimal pyiron_atomistics 0.6.13
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Conda config
14+
shell: bash -l {0}
15+
run: echo -e "channels:\n - conda-forge\n" > .condarc
16+
- name: Setup Mambaforge
17+
uses: conda-incubator/setup-miniconda@v3
18+
with:
19+
python-version: "3.12"
20+
miniforge-version: latest
21+
condarc-file: .condarc
22+
environment-file: .ci_support/environment-mini.yml
23+
- name: Test
24+
shell: bash -l {0}
25+
timeout-minutes: 5
26+
run: |
27+
pip install versioneer[toml]==0.29
28+
pip install . --no-deps --no-build-isolation
29+
python -m unittest discover tests
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests for pyiron_atomistics 0.6.12
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Conda config
14+
shell: bash -l {0}
15+
run: echo -e "channels:\n - conda-forge\n" > .condarc
16+
- name: Setup Mambaforge
17+
uses: conda-incubator/setup-miniconda@v3
18+
with:
19+
python-version: "3.12"
20+
miniforge-version: latest
21+
condarc-file: .condarc
22+
environment-file: .ci_support/environment-pyiron-atomistics-0-6-12.yml
23+
- name: Test
24+
shell: bash -l {0}
25+
timeout-minutes: 5
26+
run: |
27+
pip install versioneer[toml]==0.29
28+
pip install . --no-deps --no-build-isolation
29+
python -m unittest discover tests
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests for pyiron_atomistics 0.6.13
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Conda config
14+
shell: bash -l {0}
15+
run: echo -e "channels:\n - conda-forge\n" > .condarc
16+
- name: Setup Mambaforge
17+
uses: conda-incubator/setup-miniconda@v3
18+
with:
19+
python-version: "3.12"
20+
miniforge-version: latest
21+
condarc-file: .condarc
22+
environment-file: .ci_support/environment-pyiron-atomistics-0-6-13.yml
23+
- name: Test
24+
shell: bash -l {0}
25+
timeout-minutes: 5
26+
run: |
27+
pip install versioneer[toml]==0.29
28+
pip install . --no-deps --no-build-isolation
29+
python -m unittest discover tests

pyiron_dataclasses/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Internal init
2+
from ._version import get_versions
3+
4+
# Set version of pyiron_base
5+
__version__ = get_versions()["version"]

0 commit comments

Comments
 (0)