Skip to content

Commit 2099cec

Browse files
Activate all workflows.
1 parent e01f2bc commit 2099cec

File tree

5 files changed

+281
-0
lines changed

5 files changed

+281
-0
lines changed

.github/workflows/check-pep8.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: autopep8
2+
on:
3+
push:
4+
branches:
5+
- "*"
6+
pull_request:
7+
branches:
8+
- "*"
9+
jobs:
10+
autopep8:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: autopep8
15+
id: autopep8
16+
uses: peter-evans/autopep8@v2
17+
with:
18+
args: --recursive --in-place --aggressive --aggressive --exit-code --ignore E402 --max-line-length 120 .
19+
- name: Commit autopep8 changes
20+
if: steps.autopep8.outputs.exit-code == 2
21+
run: |
22+
git config --global user.name 'Autopep8 Bot'
23+
git config --global user.email ''
24+
git commit -am "Automated autopep8 fixes"
25+
git push
26+
- name: Fail if autopep8 made changes
27+
if: ${{ steps.autopep8.outputs.exit-code == 2 }}
28+
run: exit 1

.github/workflows/monolithic.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Run monolithic experiments
2+
on:
3+
push:
4+
branches:
5+
- introduce-ci
6+
7+
jobs:
8+
run_experiments:
9+
strategy:
10+
matrix:
11+
experiment:
12+
- name: Newmark_beta
13+
args: '-tss Newmark_beta -w 10 -o convergence-studies/monolithic_Newmark_beta.csv'
14+
- name: generalized_alpha
15+
args: '-tss generalized_alpha -w 10 -o convergence-studies/monolithic_generalized_alpha.csv'
16+
- name: runge_kutta_4
17+
args: '-tss runge_kutta_4 -w 10 -o convergence-studies/monolithic_runge_kutta_4.csv'
18+
- name: radauIIA
19+
args: '-tss radauIIA -w 10 -o convergence-studies/monolithic_radauIIA.csv'
20+
runs-on: ubuntu-latest
21+
defaults:
22+
run:
23+
working-directory: ./monolithic
24+
steps:
25+
- name: Checkout Repository
26+
uses: actions/checkout@v4
27+
- name: Install Dependencies
28+
run: |
29+
sudo apt install -y python3-venv
30+
- name: Create venv
31+
run: |
32+
./make-venv.sh
33+
- name: Activate venv
34+
# see https://stackoverflow.com/a/74669486
35+
run: |
36+
. .venv/bin/activate
37+
echo PATH=$PATH >> $GITHUB_ENV
38+
- name: Run tutorial
39+
run: |
40+
python3 doConvergenceStudy.py --silent --executor Github ${{ matrix.experiment.args }}
41+
- name: Store results
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: monolithic ${{ matrix.experiment.name }}
45+
path: |
46+
# working directory is ignored by actions/upload-artifact
47+
./monolithic/convergence-studies
48+
merge:
49+
runs-on: ubuntu-latest
50+
needs: run_experiments
51+
steps:
52+
- name: Merge results
53+
uses: actions/upload-artifact/merge@v4
54+
with:
55+
name: monolithic

.github/workflows/multirate.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Run multirate experiments
2+
on:
3+
push:
4+
branches:
5+
- introduce-ci
6+
7+
jobs:
8+
run_experiments:
9+
strategy:
10+
matrix:
11+
experiment:
12+
- name: degree1
13+
args: '-tss radauIIA radauIIA -is BSpline -wd 1 -sb 1 1 -o convergence-studies/bspline/multirate_radauIIA_degree1.csv'
14+
- name: degree2
15+
args: '-tss radauIIA radauIIA -is BSpline -wd 2 -sb 2 2 -o convergence-studies/bspline/multirate_radauIIA_degree2.csv'
16+
- name: degree3
17+
args: '-tss radauIIA radauIIA -is BSpline -wd 3 -sb 4 4 -o convergence-studies/bspline/multirate_radauIIA_degree3.csv'
18+
- name: degree4
19+
args: '-tss radauIIA radauIIA -is BSpline -wd 4 -sb 16 16 -o convergence-studies/bspline/multirate_radauIIA_degree4.csv'
20+
runs-on: ubuntu-latest
21+
defaults:
22+
run:
23+
working-directory: ./multirate
24+
container: precice/precice:2.5.1
25+
steps:
26+
- name: Checkout Repository
27+
uses: actions/checkout@v4
28+
- name: Install Dependencies
29+
run: |
30+
apt-get -qq update
31+
apt-get -qq install python3-venv git pkg-config g++
32+
rm -rf /var/lib/apt/lists/*
33+
- name: Create venv
34+
run: |
35+
./make-venv.sh
36+
- name: Activate venv
37+
# see https://stackoverflow.com/a/74669486
38+
run: |
39+
. .venv/bin/activate
40+
echo PATH=$PATH >> $GITHUB_ENV
41+
- name: Run tutorial
42+
run: |
43+
python3 doConvergenceStudy.py precice-config-template.xml --silent --executor Github ${{ matrix.experiment.args }}
44+
- name: Store results
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: multirate ${{ matrix.experiment.name }}
48+
path: |
49+
# working directory is ignored by actions/upload-artifact
50+
./multirate/convergence-studies
51+
merge:
52+
runs-on: ubuntu-latest
53+
needs: run_experiments
54+
steps:
55+
- name: Merge results
56+
uses: actions/upload-artifact/merge@v4
57+
with:
58+
name: multirate

.github/workflows/precice-2.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Run precice-2 experiments
2+
on:
3+
push:
4+
branches:
5+
- introduce-ci
6+
7+
jobs:
8+
run_experiments:
9+
strategy:
10+
matrix:
11+
experiment:
12+
- name: Higher-order time stepping Newmark_beta
13+
args: '-tss Newmark_beta Newmark_beta -o convergence-studies/higher-order/precice_2_Newmark_beta.csv'
14+
- name: Higher-order time stepping generalized_alpha
15+
args: '-tss generalized_alpha generalized_alpha -o convergence-studies/higher-order/precice_2_generalized_alpha.csv'
16+
- name: Higher-order time stepping runge_kutta_4
17+
args: '-tss runge_kutta_4 runge_kutta_4 -o convergence-studies/higher-order/precice_2_runge_kutta_4.csv'
18+
- name: Higher-order time stepping radauIIA
19+
args: '-tss radauIIA radauIIA -o convergence-studies/higher-order/precice_2_radauIIA.csv'
20+
- name: Subcycling Newmark_beta
21+
args: '-s 5 -sb 1 1 -sf 2 1 -w 1 -tss Newmark_beta Newmark_beta -o convergence-studies/subcycling/precice_2_Newmark_beta.csv'
22+
- name: Subcycling generalized_alpha
23+
args: '-s 5 -sb 1 1 -sf 2 1 -w 1 -tss generalized_alpha generalized_alpha -o convergence-studies/subcycling/precice_2_generalized_alpha.csv'
24+
- name: Subcycling runge_kutta_4
25+
args: '-s 5 -sb 1 1 -sf 2 1 -w 1 -tss runge_kutta_4 runge_kutta_4 -o convergence-studies/subcycling/precice_2_runge_kutta_4.csv'
26+
- name: Subcycling radauIIA
27+
args: '-s 5 -sb 1 1 -sf 2 1 -w 1 -tss radauIIA radauIIA -o convergence-studies/subcycling/precice_2_radauIIA.csv'
28+
runs-on: ubuntu-latest
29+
defaults:
30+
run:
31+
working-directory: ./precice-2
32+
container: precice/precice:2.5.1
33+
steps:
34+
- name: Checkout Repository
35+
uses: actions/checkout@v4
36+
- name: Install Dependencies
37+
run: |
38+
apt-get -qq update
39+
apt-get -qq install python3-venv git pkg-config g++
40+
rm -rf /var/lib/apt/lists/*
41+
- name: Create venv
42+
run: |
43+
./make-venv.sh
44+
- name: Activate venv
45+
# see https://stackoverflow.com/a/74669486
46+
run: |
47+
. .venv/bin/activate
48+
echo PATH=$PATH >> $GITHUB_ENV
49+
- name: Run tutorial
50+
run: |
51+
python3 doConvergenceStudy.py precice-config-template.xml --silent --executor Github ${{ matrix.experiment.args }}
52+
- name: Store results
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: precice-2 ${{ matrix.experiment.name }}
56+
path: |
57+
# working directory is ignored by actions/upload-artifact
58+
./precice-2/convergence-studies
59+
merge:
60+
runs-on: ubuntu-latest
61+
needs: run_experiments
62+
steps:
63+
- name: Merge results
64+
uses: actions/upload-artifact/merge@v4
65+
with:
66+
name: precice-2

.github/workflows/waveform.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Run waveform experiments
2+
on:
3+
push:
4+
branches:
5+
- introduce-ci
6+
7+
jobs:
8+
run_experiments:
9+
strategy:
10+
matrix:
11+
experiment:
12+
- name: Lagrange Newmark_beta
13+
config: 'precice-config-template.xml'
14+
args: '-tss Newmark_beta Newmark_beta -o convergence-studies/lagrange/waveform_Newmark_beta.csv'
15+
- name: Lagrange generalized_alpha
16+
config: 'precice-config-template.xml'
17+
args: '-tss generalized_alpha generalized_alpha -o convergence-studies/lagrange/waveform_generalized_alpha.csv'
18+
- name: Lagrange runge_kutta_4
19+
config: 'precice-config-template.xml'
20+
args: '-tss runge_kutta_4 runge_kutta_4 -o convergence-studies/lagrange/waveform_runge_kutta_4.csv'
21+
- name: Lagrange radauIIA
22+
config: 'precice-config-template.xml'
23+
args: '-tss radauIIA radauIIA -o convergence-studies/lagrange/waveform_radauIIA.csv'
24+
- name: Hermite Newmark_beta
25+
config: 'precice-config-hermite-template.xml'
26+
args: '-is Hermite -tss Newmark_beta Newmark_beta -o convergence-studies/hermite/waveform_Newmark_beta.csv'
27+
- name: Hermite generalized_alpha
28+
config: 'precice-config-hermite-template.xml'
29+
args: '-is Hermite -tss generalized_alpha generalized_alpha -o convergence-studies/hermite/waveform_generalized_alpha.csv'
30+
- name: Hermite runge_kutta_4
31+
config: 'precice-config-hermite-template.xml'
32+
args: '-is Hermite -tss runge_kutta_4 runge_kutta_4 -o convergence-studies/hermite/waveform_runge_kutta_4.csv'
33+
- name: Hermite radauIIA
34+
config: 'precice-config-hermite-template.xml'
35+
args: '-is Hermite -tss radauIIA radauIIA -o convergence-studies/hermite/waveform_radauIIA.csv'
36+
runs-on: ubuntu-latest
37+
defaults:
38+
run:
39+
working-directory: ./waveform
40+
container: precice/precice:2.5.1
41+
steps:
42+
- name: Checkout Repository
43+
uses: actions/checkout@v4
44+
- name: Install Dependencies
45+
run: |
46+
apt-get -qq update
47+
apt-get -qq install python3-venv git pkg-config g++
48+
rm -rf /var/lib/apt/lists/*
49+
- name: Create venv
50+
run: |
51+
./make-venv.sh
52+
- name: Activate venv
53+
# see https://stackoverflow.com/a/74669486
54+
run: |
55+
. .venv/bin/activate
56+
echo PATH=$PATH >> $GITHUB_ENV
57+
- name: Run tutorial
58+
run: |
59+
python3 doConvergenceStudy.py ${{ matrix.experiment.config }} --silent --executor Github ${{ matrix.experiment.args }}
60+
- name: Store results
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: waveform ${{ matrix.experiment.name }}
64+
path: |
65+
# working directory is ignored by actions/upload-artifact
66+
./waveform/convergence-studies
67+
merge:
68+
runs-on: ubuntu-latest
69+
needs: run_experiments
70+
steps:
71+
- name: Merge results
72+
uses: actions/upload-artifact/merge@v4
73+
with:
74+
name: waveform

0 commit comments

Comments
 (0)