Skip to content

update

update #115

Workflow file for this run

# This workflow will install the environment, run the usecase param_wall
name: tests
on:
push:
branches-ignore:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
CACHE_NUMBER: 1 # increase to reset cache manually
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: amworkflow
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: Install libGLU
run: sudo apt-get install -y libglu1-mesa
- name: Update environment
run: mamba env update -n amworkflow -f environment.yml
if: steps.cache.outputs.cache-hit != 'true'
- name: Install package
run: git clone https://github.com/tpaviot/pythonocc-utils.git && pip install ./pythonocc-utils
- name: Install amworkflow
run: python -m pip install .
- name: Run test_am4
shell: bash -l {0} #new shell
run: |
python examples/test_am4/am4.py -n p_wall -gp length width height radius -gpv 1 2 3 10
#name: Test
#
#on: [push]
#
#jobs:
# # 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.yaml
#
# - 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