Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LibreTranslate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Riße, Matthias
LibreTranslate
Commits
17c1554c
Commit
17c1554c
authored
4 years ago
by
Vincent Emonet
Browse files
Options
Downloads
Patches
Plain Diff
Fix test workflow
parent
d53e08b5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/publish-package.yml
+6
-6
6 additions, 6 deletions
.github/workflows/publish-package.yml
.github/workflows/run-tests.yml
+6
-6
6 additions, 6 deletions
.github/workflows/run-tests.yml
with
12 additions
and
12 deletions
.github/workflows/publish-package.yml
+
6
−
6
View file @
17c1554c
...
@@ -21,6 +21,12 @@ jobs:
...
@@ -21,6 +21,12 @@ jobs:
with
:
with
:
python-version
:
${{ matrix.python-version }}
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)
-
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
...
@@ -29,12 +35,6 @@ jobs:
...
@@ -29,12 +35,6 @@ jobs:
# 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
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
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
-
name
:
Test with pytest
run
:
pytest
run
:
pytest
...
...
This diff is collapsed.
Click to expand it.
.github/workflows/run-tests.yml
+
6
−
6
View file @
17c1554c
...
@@ -25,6 +25,12 @@ jobs:
...
@@ -25,6 +25,12 @@ jobs:
with
:
with
:
python-version
:
${{ matrix.python-version }}
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)
-
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
...
@@ -33,12 +39,6 @@ jobs:
...
@@ -33,12 +39,6 @@ jobs:
# 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
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
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
-
name
:
Test with pytest
run
:
pytest
run
:
pytest
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment