From c42740f6d1bd9f884b7d27802f535572954e43f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Thuret?= Date: Wed, 6 Apr 2022 14:10:41 +0200 Subject: [PATCH] Add test for docker build --- .github/workflows/run-tests.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index d5bc83b..b64f999 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -14,7 +14,7 @@ on: jobs: - tests: + tests_python: runs-on: ubuntu-latest strategy: matrix: @@ -35,7 +35,7 @@ jobs: - name: Check code style with flake8 (lint) run: | - # warnings if there are Python syntax errors or undefined names + # warnings if there are Python syntax errors or undefined names # (remove --exit-zero to fail when syntax error) flake8 . --count --exit-zero --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide @@ -44,3 +44,12 @@ jobs: - name: Test with pytest run: pytest -v + + test_docker_build: + needs: [ tests_python ] + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Docker build + run: docker build -t libretranslate .