From f24f35d5d494a41190dd9f72ddac03c6a72790f9 Mon Sep 17 00:00:00 2001 From: aradermacher Date: Thu, 29 Jun 2023 11:36:17 +0200 Subject: [PATCH] test workflow --- .github/workflows/usecase.yml | 65 +++++++++++++---------------------- 1 file changed, 23 insertions(+), 42 deletions(-) diff --git a/.github/workflows/usecase.yml b/.github/workflows/usecase.yml index c776b64..fced587 100644 --- a/.github/workflows/usecase.yml +++ b/.github/workflows/usecase.yml @@ -8,45 +8,26 @@ env: CACHE_NUMBER: 1 # increase to reset cache manually jobs: - usecase: - runs-on: ubuntu-latest - - steps: - - name: checkout repo content - uses: actions/checkout@v2 - - name: Setup Mambaforge - uses: conda-incubator/setup-miniconda@v2 - with: - python-version: 3.10 - mamba-version: "*" - channels: conda-forge,defaults - channel-priority: true - - -# miniforge-variant: Mambaforge -# miniforge-version: latest -# use-mamba: true - -# - name: Set cache date -# run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV -# -# - uses: actions/cache@v2 -# with: -# path: "/usr/share/miniconda3/envs/amworkflow" -# key: conda-${{ hashFiles('environment.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }} -# id: cache -# -# - name: Update environment -# run: mamba env update -n amworkflow -f environment.yml -# if: steps.cache.outputs.cache-hit != 'true' - - - name: create environment - run: ls && mamba env create -f environment.yml -# - - name: Install package - run: git clone https://github.com/tpaviot/pythonocc-utils.git && pip install ./pythonocc-utils - - - name: Run param_wall - shell: bash -l {0} #new shell - run: | - python usecases/param_wall/param_wall.py + # Run tests + test_model: + name: Run tests + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: [ubuntu-latest] + steps: + - uses: actions/checkout@v2 + - uses: conda-incubator/setup-miniconda@v2 + with: + channels: conda-forge + channel-priority: strict + auto-update-conda: true + environment-file: environment.yml + + - name: Install package + run: git clone https://github.com/tpaviot/pythonocc-utils.git && pip install ./pythonocc-utils + + - name: Run param_wall + shell: bash -l {0} #new shell + run: | + python usecases/param_wall/param_wall.py