mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2026-05-21 14:36:28 -04:00
Fix test workflow
This commit is contained in:
@@ -25,6 +25,12 @@ jobs:
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pytest flake8
|
||||
pip install .
|
||||
|
||||
- name: Check code style with flake8 (lint)
|
||||
run: |
|
||||
# warnings if there are Python syntax errors or undefined names
|
||||
@@ -33,12 +39,6 @@ jobs:
|
||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pytest
|
||||
pip install .
|
||||
|
||||
- name: Test with pytest
|
||||
run: pytest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user