Remove macos 11 from testing due to low calculation capacity on runner #4
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
name: Run ETHOS.PeNALPS Tests on push or pull | |
on: | |
workflow_dispatch: | |
inputs: | |
tags: | |
description: 'Manual run' | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
# Allows to trigger the workflow manually | |
jobs: | |
TestPeNALPSDevLocal: | |
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest","ubuntu-20.04", "macos-latest","macos-13","macos-12", "windows-latest","windows-2019"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
repository: FZJ-IEK3-VSA/ETHOS_PeNALPS | |
path: './ETHOS_PENALPS' | |
ref: ${{ github.ref }} | |
- 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 ETHOS_PENALPS | |
mamba env create --name penalps_env --yes --file environment.yml | |
conda run --name penalps_env pip install . --no-deps | |
echo "Installation done" | |
conda list --name penalps_env | |
echo "libaries printed" | |
echo "start pytest" | |
conda run --name penalps_env pytest | |
echo "Pytest done" | |
echo "run examples" | |
- name: Run examples | |
shell: pwsh | |
run: | | |
ls | |
cd ETHOS_PENALPS | |
cd examples | |
cd tutorial | |
conda run --name penalps_env python _1_cooking_example.py | |
conda run --name penalps_env python _2_cooking_example_more_states.py | |
conda run --name penalps_env python _3_add_more_cooker_for_parallel_operation.py | |
conda run --name penalps_env python _4_cooking_and_mixer_exclusive_example.py | |
cd _5_connect_four_process_steps | |
conda run --name penalps_env python simulation_starter.py | |
cd .. | |
cd .. | |
cd toffee_production | |
conda run --name penalps_env python simulation_starter.py | |
cd .. | |
cd basic_examples | |
conda run --name penalps_env python batch_to_batch_1_node_example.py | |
cd .. | |
cd b_pillar_manufacturing | |
conda run --name penalps_env python simulation_starter.py | |
echo "Running examples terminated" | |
#"PENALPS_VERSION=$PENALPS_VERSION" >> $GITHUB_OUTPUT |