forked from pybamm-team/PyBaMM
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (37 loc) · 1.57 KB
/
Copy pathwork_precision_sets.yml
File metadata and controls
40 lines (37 loc) · 1.57 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
name: Generate work precision sets
on:
release:
types: [published]
workflow_dispatch:
env:
PYBAMM_DISABLE_TELEMETRY: "true"
jobs:
benchmarks_on_release:
if: github.repository_owner == 'pybamm-team'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: 3.9
- name: Get current date
run: echo "VERSION=$(date +'%y.%-m')" >> $GITHUB_ENV
- name: Install PyBaMM
run: python -m pip install pybamm==${{ env.VERSION }}
- name: Run time_vs_* benchmarks for PyBaMM v${{ env.VERSION }}
run: |
python benchmarks/work_precision_sets/time_vs_dt_max.py
python benchmarks/work_precision_sets/time_vs_mesh_size.py
python benchmarks/work_precision_sets/time_vs_no_of_states.py
python benchmarks/work_precision_sets/time_vs_reltols.py
python benchmarks/work_precision_sets/time_vs_abstols.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
delete-branch: true
branch-suffix: short-commit-hash
commit-message: Work precision sets for PyBaMM version ${{ env.VERSION }}
title: Work precision sets for PyBaMM version ${{ env.VERSION }}
body: |
Update work precision sets for PyBaMM version ${{ env.VERSION }} in `release_work_precision_sets.md`