Skip to content

Commit e0c35ba

Browse files
authored
Merge pull request #95 from mandli/add-test-badge
Switch to PyTest Testing
2 parents 5f178e4 + a4c0899 commit e0c35ba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+24
-2027
lines changed

.github/workflows/testing.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ jobs:
3939
path: classic
4040
- name: Install clawpack
4141
run: |
42-
pip install --user -e $CLAW
42+
pip install --no-build-isolation --editable $CLAW
43+
# pip install --user -e $CLAW
4344
4445
- name: Lint with flake8
4546
run: |
46-
cd ${CLAW}/geoclaw
47+
cd ${CLAW}/classic
4748
# stop the build if there are Python syntax errors or undefined names
4849
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
4950
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide

.travis.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Classic Clawpack
2+
3+
This package hosts the single-grid version of the Clawpack code. All of the Clawpack solvers include the *classic* algorithms described in [LeVeque-FVMHP](https://www.clawpack.org/fvmhp_materials/) [DOI](https://doi.org/10.1017/CBO9780511791253).
4+
5+
**Links**
6+
- [Documentation](https://www.clawpack.org/)
7+
- ![Tests](https://github.com/clawpack/classic/actions/workflows/testing.yml/badge.svg)

README.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/acoustics_1d_heterogeneous/regression_test.py renamed to examples/acoustics_1d_heterogeneous/test_acoustics_1d_heterogeneous.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ def runTest(self, save=False):
1616

1717
# Write out data files
1818
self.load_rundata()
19+
20+
# Modify data for test run
21+
self.rundata.clawdata.num_output_times = 2
22+
self.rundata.clawdata.tfinal = 5.0
23+
self.rundata.clawdata.output_t0 = False
1924
self.write_rundata_objects()
2025

2126
# Run code

0 commit comments

Comments
 (0)