Skip to content

Commit 90f0e2e

Browse files
committed
Maybe this will work?
1 parent 62b1199 commit 90f0e2e

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed

.github/workflows/test.yml

+20
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,26 @@ jobs:
1818
- run: DJANGO_PATH=${GITHUB_WORKSPACE}/django docker-compose build --pull ${{ matrix.compose_app }}
1919
- run: DJANGO_PATH=${GITHUB_WORKSPACE}/django docker-compose run ${{ matrix.compose_app }}
2020

21+
sqlite-windows:
22+
name: sqlite-windows
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
python_version:
27+
- 3.6-windowsservercore-ltsc2016
28+
- 3.7-windowsservercore-ltsc2016
29+
runs-on: windows-latest
30+
steps:
31+
- uses: actions/checkout@master
32+
- run: git clone https://github.com/django/django.git --depth=1 ${GITHUB_WORKSPACE}/django
33+
- run: docker-compose pull --include-deps sqlite || true
34+
- run: DJANGO_PATH=${GITHUB_WORKSPACE}/django docker-compose build --pull sqlite
35+
env:
36+
PYTHON_VERSION: ${{ matrix.python_version }}
37+
- run: DJANGO_PATH=${GITHUB_WORKSPACE}/django docker-compose run sqlite
38+
env:
39+
PYTHON_VERSION: ${{ matrix.python_version }}
40+
2141
sqlite:
2242
name: sqlite
2343
strategy:

Dockerfile.windows

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ARG PYTHON_VERSION
2+
FROM python:${PYTHON_VERSION}
3+
4+
COPY --chown=test:test tests/requirements/ c:/requirements/
5+
RUN $files = @(Get-ChildItem c:\requirements\*.txt); \
6+
foreach ($file in $files) { pip install -r $file }; \
7+
pip install flake8 flake8-isort sphinx pyenchant sphinxcontrib-spelling selenium unittest-xml-reporting

docker-compose.yml

+17-2
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,28 @@ x-postgres-base: &postgres-base
3030
services:
3131
sqlite:
3232
<<: *base
33-
environment:
34-
- DJANGO_SETTINGS_MODULE=settings.test_sqlite
33+
build:
34+
context: ${DJANGO_PATH}
35+
dockerfile: ${PWD}/Dockerfile
3536
entrypoint: python tests/runtests.py
3637
depends_on:
3738
- memcached
3839
- memcached2
3940

41+
sqlite-windows:
42+
<<: *base
43+
build:
44+
context: ${DJANGO_PATH}
45+
dockerfile: ${PWD}/Dockerfile.windows
46+
args:
47+
- PYTHON_VERSION=${PYTHON_VERSION}
48+
environment:
49+
- DJANGO_SETTINGS_MODULE=settings.test_sqlite
50+
entrypoint: python tests/runtests.py
51+
depends_on:
52+
- memcached
53+
- memcached2
54+
4055
sqlite-gis:
4156
<<: *base
4257
entrypoint: python tests/runtests.py

0 commit comments

Comments
 (0)