Skip to content

Commit 612c668

Browse files
committed
Add docker-tests
1 parent be07a72 commit 612c668

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.github/workflows/test.yml

+22-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Test
33
on: [push, pull_request]
44

55
jobs:
6-
test:
6+
build:
77
env:
88
# We use these variables to convert between tox and GHA version literals
99
py34: 3.4
@@ -42,4 +42,24 @@ jobs:
4242
path: .tox
4343
key: tox-cache-${{ matrix.python-version }}-${{ matrix.package }}-${{ hashFiles('tox.ini', 'dev-requirements.txt') }}
4444
- name: run tox
45-
run: tox -f ${{ matrix.python-version }}-${{ matrix.package }}
45+
run: tox -f ${{ matrix.python-version }}-${{ matrix.package }}
46+
docker-tests:
47+
env:
48+
python-version: 3.7
49+
runs-on: ubuntu-latest
50+
steps:
51+
- uses: actions/checkout@v2
52+
- name: Set up Python ${{ env[python-version] }}
53+
uses: actions/setup-python@v2
54+
with:
55+
python-version: ${{ env[python-version] }}
56+
- name: Install tox
57+
run: pip install tox
58+
- name: Cache tox environment
59+
# Preserves .tox directory between runs for faster installs
60+
uses: actions/cache@v2
61+
with:
62+
path: .tox
63+
key: tox-cache-docker-tests-${{ hashFiles('tox.ini', 'dev-requirements.txt') }}
64+
- name: run tox
65+
run: tox -e docker-tests

0 commit comments

Comments
 (0)