Skip to content

Commit

Permalink
Merge pull request #1 from blueskysolarracing/michael/workflow
Browse files Browse the repository at this point in the history
Add workflow
  • Loading branch information
AussieSeaweed authored Dec 2, 2024
2 parents 8596080 + 7b96f9e commit 213795f
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 battlib
- name: Run static type checking
run: mypy --strict battlib
- name: Run unit tests
run: python -m unittest
- name: Run doctests
run: python -m doctest battlib/*.py

0 comments on commit 213795f

Please sign in to comment.