Skip to content

Commit c585e29

Browse files
committed
Add typecheck and tests build steps
1 parent 13f118f commit c585e29

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/django.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@ jobs:
2424
- name: Run ruff format checker
2525
run: ruff format --check
2626

27-
build:
27+
typecheck:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: ./.github/workflows/python_and_pip
32+
- name: Type check
33+
run: mypy --config mypy.ini styleguide_example/
34+
35+
tests:
2836
runs-on: ubuntu-latest
2937
services:
3038
postgres:
@@ -40,17 +48,13 @@ jobs:
4048
steps:
4149
- uses: actions/checkout@v4
4250
- uses: ./.github/workflows/python_and_pip
43-
- name: Run ruff
44-
run: ruff check .
45-
- name: Type check
46-
run: mypy --config mypy.ini styleguide_example/
4751
- name: Run tests
4852
run: pytest
4953

5054
deploy_to_heroku:
5155
runs-on: ubuntu-latest
52-
needs: build
53-
# The project is currently hosted on render.com
56+
needs: [lint_and_format, typecheck, tests]
57+
# The project is currently not hosted anywhere
5458
if: false
5559
steps:
5660
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)