Skip to content

Commit

Permalink
Add docker-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ffe4 committed Aug 21, 2020
1 parent ca00120 commit ac36e64
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test
on: [push, pull_request]

jobs:
test:
build:
env:
# We use these variables to convert between tox and GHA version literals
py34: 3.4
Expand Down Expand Up @@ -42,4 +42,24 @@ jobs:
path: .tox
key: tox-cache-${{ matrix.python-version }}-${{ matrix.package }}-${{ hashFiles('tox.ini', 'dev-requirements.txt') }}
- name: run tox
run: tox -f ${{ matrix.python-version }}-${{ matrix.package }}
run: tox -f ${{ matrix.python-version }}-${{ matrix.package }}
docker-tests:
env:
python-version: 3.7
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ env.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.python-version }}
- name: Install tox
run: pip install tox
- name: Cache tox environment
# Preserves .tox directory between runs for faster installs
uses: actions/cache@v2
with:
path: .tox
key: tox-cache-docker-tests-${{ hashFiles('tox.ini', 'dev-requirements.txt') }}
- name: run tox
run: tox -e docker-tests

0 comments on commit ac36e64

Please sign in to comment.