Skip to content

Commit

Permalink
test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aradermacher committed Jun 29, 2023
1 parent 32bc43d commit f24f35d
Showing 1 changed file with 23 additions and 42 deletions.
65 changes: 23 additions & 42 deletions .github/workflows/usecase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f24f35d

Please sign in to comment.