Skip to content

Commit 413e65c

Browse files
committed
Refactoe
1 parent f0089c5 commit 413e65c

File tree

3 files changed

+34
-38
lines changed

3 files changed

+34
-38
lines changed

.github/workflows/misc.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/sqlite.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run tests
2+
on: [push]
3+
4+
jobs:
5+
docs:
6+
name: ${{ matrix.compose_app }}
7+
strategy:
8+
matrix:
9+
compose_app:
10+
- flake8
11+
- docs
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@master
15+
- run: git clone https://github.com/django/django.git --depth=1 ${GITHUB_WORKSPACE}/django
16+
- run: docker-compose pull --include-deps ${{ matrix.compose_app }}
17+
- run: DJANGO_PATH=${GITHUB_WORKSPACE}/django docker-compose build --pull ${{ matrix.compose_app }}
18+
- run: DJANGO_PATH=${GITHUB_WORKSPACE}/django docker-compose run ${{ matrix.compose_app }}
19+
20+
sqlite:
21+
name: sqlite
22+
strategy:
23+
matrix:
24+
python_version:
25+
- 3.6
26+
- 3.7
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@master
30+
- run: git clone https://github.com/django/django.git --depth=1 ${GITHUB_WORKSPACE}/django
31+
- run: docker-compose pull --include-deps sqlite
32+
- run: DJANGO_PATH=${GITHUB_WORKSPACE}/django PYTHON_VERSION=${{ matrix.python_version }} docker-compose build --pull sqlite
33+
- run: DJANGO_PATH=${GITHUB_WORKSPACE}/django PYTHON_VERSION=${{ matrix.python_version }} docker-compose run sqlite
34+

0 commit comments

Comments
 (0)