surplus/.github/workflows/checks.yml
Mark Joshwel aaa1747517 meta: switch to directory layout for py.typed
i dont like it, but that's how it'll have to be
https://github.com/python/typing/issues/1333

s+: also, add __str__ support for query types (#18)
2023-09-02 17:03:23 +00:00

49 lines
1.1 KiB
YAML

name: qc
on:
workflow_dispatch:
push:
paths:
- '**.py'
jobs:
analyse:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: install devbox
uses: jetpack-io/devbox-install-action@v0.3.0
- name: install dependencies
run: devbox run poetry install
- name: buil wheel
id: build
run: devbox run poetry build
- name: analyse with mypy
run: devbox run poetry run mypy surplus.py **/*.py
- name: check for black formatting compliance
run: devbox run poetry run "black --check surplus.py **/*.py"
- name: analyse isort compliance
run: devbox run poetry run "isort --check **/*.py"
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: install devbox
uses: jetpack-io/devbox-install-action@v0.3.0
- name: install dependencies
run: devbox run poetry install
- name: run tests
run: devbox run poetry run python test.py