Skip to content

Commit b030299

Browse files
committed
Add separate test job for unit tests
1 parent 467f685 commit b030299

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,20 @@ on:
55
- master
66
pull_request:
77
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-python@v2
13+
with:
14+
python-version: "3.9"
15+
- uses: Gr1n/setup-poetry@v4
16+
with:
17+
poetry-version: '1.1.4'
18+
- run: pip install tox
19+
- run: tox -e lint,py39-dj31
820
build_site:
21+
needs: test
922
runs-on: ubuntu-latest
1023
steps:
1124
- uses: actions/checkout@v2
@@ -38,9 +51,6 @@ jobs:
3851
poetry config virtualenvs.create false &&
3952
poetry install
4053
- run: poetry run django-admin runserver --settings=tests.settings.production --pythonpath=. &
41-
- run: pip install tox
42-
# Python linting.
43-
- run: tox -e lint
4454
# Docs website build.
4555
- run: poetry run mkdocs build --strict
4656
# Demo website build.

0 commit comments

Comments
 (0)