Skip to content

Commit

Permalink
Merge pull request #1520 from pyiron/tests
Browse files Browse the repository at this point in the history
Refactor tests
  • Loading branch information
jan-janssen authored Jul 10, 2024
2 parents abf9170 + 6bd92fd commit 00c5c80
Show file tree
Hide file tree
Showing 92 changed files with 6 additions and 73 deletions.
22 changes: 0 additions & 22 deletions .ci_support/test_backwards.sh

This file was deleted.

1 change: 0 additions & 1 deletion .github/variables/cache_number.env

This file was deleted.

6 changes: 0 additions & 6 deletions .github/workflows/atomistics-compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,12 @@ jobs:
include:
- operating-system: macos-latest
python-version: '3.12'
label: osx-64-py-3-12
prefix: /Users/runner/miniconda3/envs/my-env

- operating-system: windows-latest
python-version: '3.12'
label: win-64-py-3-12
prefix: C:\Miniconda3\envs\my-env

- operating-system: ubuntu-latest
python-version: '3.12'
label: linux-64-py-3-12
prefix: /usr/share/miniconda3/envs/my-env

steps:
- uses: actions/checkout@v4
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/backwards.yml

This file was deleted.

8 changes: 1 addition & 7 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,12 @@ jobs:
include:
- operating-system: macos-latest
python-version: '3.12'
label: osx-64-py-3-12
prefix: /Users/runner/miniconda3/envs/my-env

- operating-system: windows-latest
python-version: '3.12'
label: win-64-py-3-12
prefix: C:\Miniconda3\envs\my-env

- operating-system: ubuntu-latest
python-version: '3.12'
label: linux-64-py-3-12
prefix: /usr/share/miniconda3/envs/my-env

steps:
- uses: actions/checkout@v4
Expand All @@ -46,4 +40,4 @@ jobs:
run: |
python .ci_support/pyironconfig.py
bash .ci_support/pip_install.sh
python -m unittest discover test_benchmarks
python -m unittest discover tests/benchmarks
6 changes: 1 addition & 5 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,18 @@ jobs:
- operating-system: ubuntu-latest
python-version: '3.12'
label: linux-64-py-3-12
prefix: /usr/share/miniconda3/envs/my-env

- operating-system: ubuntu-latest
python-version: '3.11'
label: linux-64-py-3-11
prefix: /usr/share/miniconda3/envs/my-env

- operating-system: ubuntu-latest
python-version: '3.10'
label: linux-64-py-3-10
prefix: /usr/share/miniconda3/envs/my-env

- operating-system: ubuntu-latest
python-version: 3.9
label: linux-64-py-3-9
prefix: /usr/share/miniconda3/envs/my-env

steps:
- uses: actions/checkout@v4
Expand All @@ -61,7 +57,7 @@ jobs:
run: |
python .ci_support/pyironconfig.py
bash .ci_support/pip_install.sh
coverage run --omit="pyiron_base/_version.py,tests/*" -m unittest discover tests
coverage run --omit="pyiron_base/_version.py,tests/*" -m unittest discover tests/unit
coverage xml
- name: Coveralls
if: matrix.label == 'linux-64-py-3-11'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unittests_old.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
timeout-minutes: 30
run: |
bash .ci_support/pip_install.sh
python -m unittest discover tests
python -m unittest discover tests/unit
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ def setUpClass(cls):
cls.empty_hdf5 = FileHDFio(file_name=cls.current_dir + "/filehdfio_empty.h5")
cls.full_hdf5 = FileHDFio(file_name=cls.current_dir + "/filehdfio_full.h5")
cls.i_o_hdf5 = FileHDFio(file_name=cls.current_dir + "/filehdfio_io.h5")
cls.es_hdf5 = FileHDFio(file_name=cls.current_dir + "/../static/dft/es_hdf.h5")
cls.es_hdf5 = FileHDFio(
file_name=cls.current_dir + "/../../static/dft/es_hdf.h5"
)
with cls.full_hdf5.open("content") as hdf:
_write_full_hdf_content(hdf=hdf)
with cls.i_o_hdf5.open("content") as hdf:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added tests/unit/utils/__init__.py
Empty file.
File renamed without changes.

0 comments on commit 00c5c80

Please sign in to comment.