Skip to content

Commit

Permalink
actions updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethlove committed Nov 17, 2023
1 parent 3aa1804 commit c079b4b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 15 additions & 0 deletions .github/workflows/typing.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c079b4b

Please sign in to comment.