Skip to content

Commit 51b2500

Browse files
committed
Update makefile, test script and workflows
1 parent 8fdf9b5 commit 51b2500

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

.github/workflows/examples.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,4 @@ jobs:
4343
run:
4444
pytest examples/
4545
--nbval-lax
46-
--ignore="examples/paper_recreations/Blunt et al. (2013)"
47-
--ignore="examples/paper_recreations/Wu et al. (2010)"
46+

.github/workflows/tests.yml

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ jobs:
5252
pytest .
5353
--cov=.
5454
--cov-report=xml
55-
--ignore=scripts
5655

5756
- name: Upload coverage to Codecov
5857
if: (matrix.python-version == 3.8) && (matrix.os == 'ubuntu-latest')

Makefile

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
.SILENT: clean
2-
.PHONY: clean
1+
.SILENT: clean nbtest test
2+
.PHONY: clean nbtest test
33

44
clean:
5+
echo "Cleaning up the repo..."
56
python bin/clean
7+
8+
nbtest:
9+
echo "Running example notebooks..."
10+
pytest examples --nbval-lax \
11+
--ignore="examples/paper_recreations/Blunt et al. (2013)" \
12+
--ignore="examples/paper_recreations/Wu et al. (2010)"
13+
14+
test:
15+
echo "Running unit tests..."
16+
pytest --ignore=scripts
17+

bin/test

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ if 'cov' in sys.argv:
1818
if 'nbval' in sys.argv:
1919
args.append('--nbval')
2020

21-
if 'ignore-examples' in sys.argv:
21+
if 'min' in sys.argv:
2222
args.extend(['--ignore=examples/'])
2323
args.extend(['--ignore=scripts/'])
2424

2525
exit_code = pytest.main(args)
2626
exit(exit_code)
27+

0 commit comments

Comments
 (0)