Poplar1: Move prefix order check to is_valid() #741
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/test.yml' | |
- 'poc/**' | |
pull_request: | |
paths: | |
- '.github/workflows/test.yml' | |
- 'poc/**' | |
jobs: | |
test: | |
name: "Run unit tests for reference code" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: pip | |
- name: Install dependencies | |
run: python -m pip install pycryptodomex mypy | |
- name: Run tests | |
working-directory: poc | |
run: python -m unittest | |
- name: Regenerate test vectors | |
working-directory: poc | |
run: python gen_test_vec.py | |
- name: Enforce type hints | |
working-directory: poc | |
run: python -m mypy *.py vdaf_poc/*.py tests/*.py |