-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'prepare_for_python_3.10' into 'devel'
Merge into devel See merge request loads-kernel/loads-kernel!68
- Loading branch information
Showing
14 changed files
with
187 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# This workflow will try to build and install the software in different ways. | ||
|
||
name: Build and installation tests | ||
|
||
on: | ||
push: | ||
branches: ['master', 'devel'] | ||
pull_request: | ||
branches: '*' | ||
|
||
jobs: | ||
pure-pip-installation: | ||
# This stage only tests if the installation is possible. | ||
# The evironment created herein will be discared and re-created in the test stage. | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# Add multiple Python versions here to run tests on new(er) versions. | ||
python-version: ["3.10"] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build and install | ||
run: | | ||
python -m pip install --upgrade pip | ||
# Install with -e (in editable mode) to allow the tracking of the test coverage | ||
pip install -e . | ||
# Check result of installation | ||
python -c "import loadskernel" | ||
which loads-kernel | ||
which model-viewer | ||
which loads-compare | ||
conda-and-pip-installation: | ||
# This stage only tests if the installation is possible. | ||
# The evironment created herein will be discared and re-created in the test stage. | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# Add multiple Python versions here to run tests on new(er) versions. | ||
python-version: ["3.10", "3.11"] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build and install | ||
run: | | ||
# Install same requirements as to be used during regression testing | ||
source $CONDA/etc/profile.d/conda.sh | ||
conda activate | ||
conda install -y -c conda-forge --file ./tests/requirements.txt | ||
# Install with -e (in editable mode) to allow the tracking of the test coverage | ||
pip install -e . | ||
# Check result of installation | ||
python -c "import loadskernel" | ||
which loads-kernel | ||
which model-viewer | ||
which loads-compare | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
output/* | ||
*.pyc | ||
.pytest_cache/ | ||
Loads_Kernel.egg-info/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[pytest] | ||
filterwarnings = | ||
# Filter to avoid annoying deprecation warnings raised by third party code | ||
# Step 1: ignore all deprecation warnings | ||
ignore::DeprecationWarning:: | ||
# Step 2: re-activate deprecation warnings for own modules | ||
default::DeprecationWarning:loadskernel.* | ||
default::DeprecationWarning:loadsviewer.* | ||
default::DeprecationWarning:modelviewer.* | ||
default::DeprecationWarning:tests.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# These are the requirements to be used during regression testing | ||
mayavi | ||
traits | ||
traitsui | ||
pyface | ||
pyfmi | ||
h5py | ||
mpi4py | ||
pytest-cov | ||
psutil | ||
pytables | ||
pyyaml | ||
matplotlib | ||
mamba | ||
pandas | ||
openpyxl | ||
jupyter | ||
jupyter-book | ||
flake8 | ||
pylint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import platform | ||
|
||
|
||
def test_dummy(): | ||
print('The dummy test is executed.') | ||
print('Running on python version {}'.format(platform.python_version())) | ||
pass |
Oops, something went wrong.