Read about our upcoming Code of Conduct on this issue

Commit 045bc68c authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Tests: made a `run-all-tests` command and a `test` make target

This looks somewhat redundant, but `make` is not currently available
in the CI image. We could add it (but not the whole toolchain) but
it's not worth the effort for now.
parent 087279283936
Pipeline #20076 passed with stage
in 52 seconds
......@@ -6,5 +6,4 @@
script:
# should be just a version check, everything should be in the base image
- python3 -m pip install -r test-requirements.txt
- flake8 *.py heptapod_upstream_conversion
- pytest --doctest-modules heptapod_upstream_conversion
- ./run-all-tests
......@@ -6,6 +6,7 @@
help:
@echo 'Available commands'
@echo ' install - install console scripts with `pip --user`'
@echo ' test - install test requirements and run tests'
@echo ''
@echo 'You may customize the target with the PYTHON and PIP_INSTALL '
@echo 'variables. Current values:'
......@@ -15,3 +16,11 @@
install:
${PYTHON} -m pip ${PIP_CMD} .
# in the test target, we don't use PIP_CMD because it would be incompatible
# by default with the `-r` flag. But we can assume that a global installation
# is ok (case of CI) or that we are in a virtualenv (case of dev system)
test:
${PYTHON} -m pip install -r test-requirements.txt
./run-all-tests
#!/bin/sh
set -e
flake8 setup.py heptapod_upstream_conversion
pytest --doctest-modules heptapod_upstream_conversion
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment