diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index d93053a..d020cc9 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -8,8 +8,8 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '3.11' - - run: pip install django django-rest-framework pytest pytest-django pytest-lazy-fixture + - run: pip install django django-rest-framework pytest pytest-django pytest-lazy-fixture pytest-cov - name: Run pytest env: PYTHONPATH: tests/project/:src/ - run: pytest + run: pytest --cov --cov-fail-under=100 diff --git a/.github/workflows/typing.yml b/.github/workflows/typing.yml new file mode 100644 index 0000000..d5a908b --- /dev/null +++ b/.github/workflows/typing.yml @@ -0,0 +1,15 @@ +name: django-brackets-typing +on: [pull_request, workflow_dispatch] +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.11' + - run: pip install mypy django-stubs[compatible-mypy] djangorestframework-stubs[compatible-mypy] + - name: Run mypy + env: + PYTHONPATH: tests/project/:src/ + run: mypy src