#1248: Reuse Docker images in functional tests

This commit is contained in:
Pablo Santiago Blum de Aguiar
2023-07-10 14:29:31 +02:00
parent d81929f294
commit 2cadcca904
7 changed files with 27 additions and 50 deletions
+4 -1
View File
@@ -41,7 +41,10 @@ jobs:
run: coverage run --source=thefuck,tests -m pytest -v --capture=sys tests
- name: Run tests (including functional)
if: matrix.os == 'ubuntu-latest' && matrix.python-version == env.PYTHON_LATEST
run: coverage run --source=thefuck,tests -m pytest -v --capture=sys tests --enable-functional
run: |
docker build -t thefuck/python3 -f tests/Dockerfile --build-arg PYTHON_VERSION=3 .
docker build -t thefuck/python2 -f tests/Dockerfile --build-arg PYTHON_VERSION=2 .
coverage run --source=thefuck,tests -m pytest -v --capture=sys tests --enable-functional
- name: Post coverage results
if: matrix.os == 'ubuntu-latest' && matrix.python-version == env.PYTHON_LATEST
env: