Skip to content

Commit af474a8

Browse files
authored
Regression testing (#1)
Add regression testing through github actions
1 parent d81b36e commit af474a8

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test glow disharge time periodic shooting solver
2+
3+
# Run upon push to main and PR
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
10+
jobs:
11+
regression:
12+
runs-on: ubuntu-24.04
13+
name: Run regression tests
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
lfs: true
18+
- name: Checkout LFS objects
19+
run: git lfs checkout
20+
- name: Set up Python 3.13 environment
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: "3.13.5"
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install numpy scipy matplotlib
28+
- name: Run Liu case test
29+
run: ./testRunBase.sh
30+
- name: Run constant background CN test
31+
run: ./testRunCN.sh
32+
- name: Run constant background CN test (interpolated electron transport)
33+
run: ./testInterpTrans.sh
34+
- name: Run variable background CN test
35+
run: ./testRunBackground.sh

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Simulation results
2+
*.npy
3+
*.out
4+
5+
# Text editor back ups
6+
*~
7+
18
# Byte-compiled / optimized / DLL files
29
__pycache__/
310
*.py[codz]

0 commit comments

Comments
 (0)