diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..c4128d0 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,19 @@ +name: Run style checking, static type checking, unit test, and doctests +on: [pull_request, push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + - run: pip install -r requirements.txt + - name: Run style checking + run: flake8 revolution + - name: Run static type checking + run: mypy --strict revolution + - name: Run unit tests + run: python -m unittest + - name: Run doctests + run: python -m doctest revolution/*.py \ No newline at end of file