Run unit tests on push. Usees a test script as an entrypoint for pre-push hooks.

pull/2073/head
Kieran R. Prasch 2020-06-04 21:15:32 -07:00 committed by Kieran Prasch
parent 7f77cbd60a
commit 51a25fe23e
No known key found for this signature in database
GPG Key ID: 199AB839D4125A62
2 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,13 @@ repos:
entry: ./scripts/hooks/validate_circleci_config.sh
language: script
- id: tests
name: Run Nucypher Unit Tests
entry: scripts/hooks/run_unit_tests.sh
language: system
types: [python]
stages: [push]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:

View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e
pytest tests/unit
exit 0