-
Notifications
You must be signed in to change notification settings - Fork 5
65 lines (50 loc) · 1.84 KB
/
Copy pathrun-benchmark-examples.yml
File metadata and controls
65 lines (50 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Examples-CI
on:
push:
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Runs the workflow once per day at 3:15am
schedule:
- cron: '3 16 * * *'
env:
CACHE_NUMBER: 1 # increase to reset cache manually
jobs:
run-examples:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
activate-environment: model-validation
use-mamba: true
- name: Set strict channel priority
run: conda config --set channel_priority strict
- name: Update environment
run: mamba env update -n model-validation -f environment_benchmarks.yml
- name: Run linear-elastic-plate-with-hole using fenics
shell: bash -l {0}
run: |
cd $GITHUB_WORKSPACE/examples/linear-elastic-plate-with-hole/fenics/
python run_benchmark.py
- name: Run linear-elastic-plate-with-hole using kratos
shell: bash -l {0}
run: |
cd $GITHUB_WORKSPACE/examples/linear-elastic-plate-with-hole/kratos/
python run_benchmark.py
- name: Archive results of the fenics run of linear-elastic-plate-with-hole
uses: actions/upload-artifact@v4
with:
name: fenics_results_linear-elastic-plate-with-hole
path: |
examples/linear-elastic-plate-with-hole/fenics/results/
- name: Archive results of the kratos run of linear-elastic-plate-with-hole
uses: actions/upload-artifact@v4
with:
name: kratos_results_linear-elastic-plate-with-hole
path: |
examples/linear-elastic-plate-with-hole/kratos/results/