From c079b4bb661bb6fb5fbe643949dced08d64f1b9c Mon Sep 17 00:00:00 2001 From: Kenneth Love Date: Fri, 17 Nov 2023 19:37:09 +0000 Subject: [PATCH] actions updates --- .github/workflows/testing.yml | 4 ++-- .github/workflows/typing.yml | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/typing.yml 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