Skip to content

Enforce type hints for vdaf_*.py and all remaining tests #404

Enforce type hints for vdaf_*.py and all remaining tests

Enforce type hints for vdaf_*.py and all remaining tests #404

Workflow file for this run

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
container:
image: sagemath/sagemath:latest
options: --user root
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: sage --pip install pycryptodomex mypy
- name: Run tests
working-directory: poc
run: sage -python -m unittest
- name: Enforce type hints
working-directory: poc
run: sage -python -m mypy *.py tests/*.py