mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-18 08:27:03 +02:00
Add test for docker build
This commit is contained in:
parent
8d602a80c3
commit
c42740f6d1
13
.github/workflows/run-tests.yml
vendored
13
.github/workflows/run-tests.yml
vendored
@ -14,7 +14,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
tests:
|
tests_python:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -35,7 +35,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Check code style with flake8 (lint)
|
- name: Check code style with flake8 (lint)
|
||||||
run: |
|
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)
|
# (remove --exit-zero to fail when syntax error)
|
||||||
flake8 . --count --exit-zero --select=E9,F63,F7,F82 --show-source --statistics
|
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
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||||
@ -44,3 +44,12 @@ jobs:
|
|||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: pytest -v
|
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 .
|
||||||
|
Loading…
Reference in New Issue
Block a user