diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e69de29..d24e014 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + tests: + name: build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install flake8 mypy pytest coverage + + - name: Lint with flake8 + run: flake8 . + + - name: Type check with mypy + run: mypy --strict . + + - name: Run tests with pytest + run: pytest --cov=. \ No newline at end of file