-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·31 lines (25 loc) · 977 Bytes
/
Makefile
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
.PHONY:load save remove
# Save new snapshot of environment
refreeze:
conda env create -n testenv -f package/dev_environment.yml
conda env export -n testenv -f package/frozen_environment.yml
conda env remove -n testenv
# Load/update env based on latest version of libraries in dev_environment file
update:
conda env update -n stone-mason -f package/dev_environment.yml
# Reset env based on frozen version of libraries in frozen_environment file
rollback:
conda env remove -n stone-mason
conda env update -n stone-mason -f package/frozen_environment.yml
.PHONY:test
# Run tests with Pytest
test:
pytest --verbose --cov-report term --cov=masonry package/tests \
--ignore package/tests/example_templates \
--ignore package/tests/data
.PHONY:debug
# Run tests with Pytest with debug on
debug:
pytest --verbose -s --pudb --cov-report term --cov=masonry package/tests \
--ignore package/tests/example_templates \
--ignore package/tests/data