Skip to content

Commit

Permalink
Add workflow (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenghymichael authored Dec 2, 2024
1 parent 8ace232 commit ceb85d7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ceb85d7

Please sign in to comment.