mirror of https://github.com/nucypher/nucypher.git
Run unit tests on push. Usees a test script as an entrypoint for pre-push hooks.
parent
7f77cbd60a
commit
51a25fe23e
|
@ -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:
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
pytest tests/unit
|
||||
exit 0
|
Loading…
Reference in New Issue