-
Notifications
You must be signed in to change notification settings - Fork 11
70 lines (55 loc) · 1.68 KB
/
convergence-test.yml
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
63
64
65
66
67
68
69
70
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Run convergence test
on:
push:
branches:
- "!*"
tags:
- "v*"
jobs:
job_1:
name: run convergence tests
runs-on: ubuntu-latest
strategy:
matrix:
dx: [0.1, 0.2, 0.4]
dt: [0.05]
include:
- dt: 0.025
dx: 0.2
- dt: 0.1
dx: 0.2
container:
image: ghcr.io/scientificcomputing/fenics-gmsh:2023-02-20
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: |
python3 -m pip install -e "."
- name: Run benchmark with dx = ${{ matrix.dx }} and dt = ${{ matrix.dt }}
run: python3 -m simcardems.benchmark run convergence_test --dt=${{ matrix.dt }} --dx=${{ matrix.dx }} --sha=${{ github.sha }}
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: "results-${{ matrix.dx }}-${{ matrix.dt }}"
path: convergence_test/results_dx*.json
job_2:
name: Download repost and upload to gist
needs: job_1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
path: convergence_test
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: python3 -m pip install requests
- name: Print files
run: python3 scripts/upload-data.py convergence_test --token=${{ secrets.CONV_TOKEN }}