Skip to content

Commit

Permalink
fix: add a scripts/test script
Browse files Browse the repository at this point in the history
Add a scripts/test script to make clearer how we test the
package. Previously the invocation of pytest was
only "documented" in our CI configuration. Now
it is "documented" in the repository proper in the form of a script.
With luck, anyone thinking to run `scripts/check` will
notice `scripts/test`.
  • Loading branch information
riddell-stan committed Jan 19, 2021
1 parent 235d759 commit 73ddd8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ jobs:
run: scripts/check

- name: Run tests
run: python -m pytest -s -v tests
run: scripts/test
5 changes: 5 additions & 0 deletions scripts/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -euo pipefail

set -x
python3 -m pytest -s -v tests

0 comments on commit 73ddd8e

Please sign in to comment.