-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 'master'
Develop into master See merge request iek-3/shared-code/fine!326
- Loading branch information
Showing
22 changed files
with
322 additions
and
160 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,86 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
# Allows to trigger the workflow manually | ||
workflow_dispatch: | ||
branches: | ||
- master | ||
- develop | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
# Some Examples for cron syntax https://crontab.guru/examples.html | ||
# Schedules job at any point after 12 pm | ||
- cron: '0 0 * * *' | ||
# Weekly after sunday | ||
# - cron: 0 0 * * 0 | ||
|
||
jobs: | ||
TestFineSingle: | ||
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: FZJ-IEK3-VSA/FINE | ||
path: './fine' | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniforge-version: latest | ||
channels: conda-forge | ||
activate-environment: test_env | ||
- name: Run tests | ||
shell: pwsh | ||
run: | | ||
ls | ||
echo "LS Done" | ||
mamba install fine pytest | ||
echo "Installation done" | ||
conda list | ||
echo "libaries printed" | ||
echo "start pytest" | ||
pytest | ||
echo "Pytest done" | ||
TestFineDevLocal: | ||
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: FZJ-IEK3-VSA/FINE | ||
path: './fine' | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniforge-version: latest | ||
channels: conda-forge | ||
activate-environment: test_env | ||
- name: Run tests | ||
shell: pwsh | ||
run: | | ||
ls | ||
echo "LS Done" | ||
cd fine | ||
mamba env create --name fine_env --yes --file requirements_dev.yml | ||
conda run --name fine_env pip install . --no-deps | ||
echo "Installation done" | ||
conda list --name fine_env | ||
echo "libaries printed" | ||
echo "start pytest" | ||
conda run --name fine_env pytest | ||
echo "Pytest done" |
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
Oops, something went wrong.