forked from loafle/openapi-generator-original
[Python] Restore required dev dependency + Adjust generated Github workflow (#19773)
* Restore required python client dev dependency pytest-cov * Harmonize python client workflow definitions --------- Co-authored-by: Pascal Bachor <bachorp@users.noreply.github.com>
This commit is contained in:
parent
67942aa478
commit
817da39124
@ -25,15 +25,8 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install flake8 pytest
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
# 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
|
||||
pip install -r requirements.txt
|
||||
pip install -r test-requirements.txt
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
pytest
|
||||
pytest --cov={{packageName}}
|
||||
|
@ -29,11 +29,12 @@ pydantic = ">= 2"
|
||||
typing-extensions = ">= 4.7.1"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
pytest = ">=7.2.1"
|
||||
tox = ">=3.9.0"
|
||||
flake8 = ">=4.0.0"
|
||||
types-python-dateutil = ">=2.8.19.14"
|
||||
mypy = ">=1.5"
|
||||
pytest = ">= 7.2.1"
|
||||
pytest-cov = ">= 2.8.1"
|
||||
tox = ">= 3.9.0"
|
||||
flake8 = ">= 4.0.0"
|
||||
types-python-dateutil = ">= 2.8.19.14"
|
||||
mypy = ">= 1.5"
|
||||
|
||||
|
||||
[build-system]
|
||||
|
@ -1,4 +1,5 @@
|
||||
pytest >= 7.2.1
|
||||
pytest-cov >= 2.8.1
|
||||
tox >= 3.9.0
|
||||
flake8 >= 4.0.0
|
||||
types-python-dateutil >= 2.8.19.14
|
||||
|
@ -24,15 +24,8 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install flake8 pytest
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
# 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
|
||||
pip install -r requirements.txt
|
||||
pip install -r test-requirements.txt
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
pytest
|
||||
pytest --cov={{packageName}}
|
||||
|
@ -18,11 +18,12 @@ pydantic = ">= 2"
|
||||
typing-extensions = ">= 4.7.1"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
pytest = ">=7.2.1"
|
||||
tox = ">=3.9.0"
|
||||
flake8 = ">=4.0.0"
|
||||
types-python-dateutil = ">=2.8.19.14"
|
||||
mypy = ">=1.5"
|
||||
pytest = ">= 7.2.1"
|
||||
pytest-cov = ">= 2.8.1"
|
||||
tox = ">= 3.9.0"
|
||||
flake8 = ">= 4.0.0"
|
||||
types-python-dateutil = ">= 2.8.19.14"
|
||||
mypy = ">= 1.5"
|
||||
|
||||
|
||||
[build-system]
|
||||
|
@ -1,4 +1,5 @@
|
||||
pytest >= 7.2.1
|
||||
pytest-cov >= 2.8.1
|
||||
tox >= 3.9.0
|
||||
flake8 >= 4.0.0
|
||||
types-python-dateutil >= 2.8.19.14
|
||||
|
@ -24,15 +24,8 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install flake8 pytest
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
# 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
|
||||
pip install -r requirements.txt
|
||||
pip install -r test-requirements.txt
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
pytest
|
||||
pytest --cov={{packageName}}
|
||||
|
@ -18,11 +18,12 @@ pydantic = ">= 2"
|
||||
typing-extensions = ">= 4.7.1"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
pytest = ">=7.2.1"
|
||||
tox = ">=3.9.0"
|
||||
flake8 = ">=4.0.0"
|
||||
types-python-dateutil = ">=2.8.19.14"
|
||||
mypy = ">=1.5"
|
||||
pytest = ">= 7.2.1"
|
||||
pytest-cov = ">= 2.8.1"
|
||||
tox = ">= 3.9.0"
|
||||
flake8 = ">= 4.0.0"
|
||||
types-python-dateutil = ">= 2.8.19.14"
|
||||
mypy = ">= 1.5"
|
||||
|
||||
|
||||
[build-system]
|
||||
|
@ -1,4 +1,5 @@
|
||||
pytest >= 7.2.1
|
||||
pytest-cov >= 2.8.1
|
||||
tox >= 3.9.0
|
||||
flake8 >= 4.0.0
|
||||
types-python-dateutil >= 2.8.19.14
|
||||
|
@ -24,15 +24,8 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install flake8 pytest
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
# 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
|
||||
pip install -r requirements.txt
|
||||
pip install -r test-requirements.txt
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
pytest
|
||||
pytest --cov={{packageName}}
|
||||
|
@ -22,11 +22,12 @@ pydantic = ">= 2"
|
||||
typing-extensions = ">= 4.7.1"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
pytest = ">=7.2.1"
|
||||
tox = ">=3.9.0"
|
||||
flake8 = ">=4.0.0"
|
||||
types-python-dateutil = ">=2.8.19.14"
|
||||
mypy = ">=1.5"
|
||||
pytest = ">= 7.2.1"
|
||||
pytest-cov = ">= 2.8.1"
|
||||
tox = ">= 3.9.0"
|
||||
flake8 = ">= 4.0.0"
|
||||
types-python-dateutil = ">= 2.8.19.14"
|
||||
mypy = ">= 1.5"
|
||||
|
||||
|
||||
[build-system]
|
||||
|
@ -1,4 +1,5 @@
|
||||
pytest >= 7.2.1
|
||||
pytest-cov >= 2.8.1
|
||||
tox >= 3.9.0
|
||||
flake8 >= 4.0.0
|
||||
types-python-dateutil >= 2.8.19.14
|
||||
|
@ -24,15 +24,8 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install flake8 pytest
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
# 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
|
||||
pip install -r requirements.txt
|
||||
pip install -r test-requirements.txt
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
pytest
|
||||
pytest --cov={{packageName}}
|
||||
|
@ -20,11 +20,12 @@ pydantic = ">= 2"
|
||||
typing-extensions = ">= 4.7.1"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
pytest = ">=7.2.1"
|
||||
tox = ">=3.9.0"
|
||||
flake8 = ">=4.0.0"
|
||||
types-python-dateutil = ">=2.8.19.14"
|
||||
mypy = ">=1.5"
|
||||
pytest = ">= 7.2.1"
|
||||
pytest-cov = ">= 2.8.1"
|
||||
tox = ">= 3.9.0"
|
||||
flake8 = ">= 4.0.0"
|
||||
types-python-dateutil = ">= 2.8.19.14"
|
||||
mypy = ">= 1.5"
|
||||
|
||||
|
||||
[build-system]
|
||||
|
@ -1,4 +1,5 @@
|
||||
pytest >= 7.2.1
|
||||
pytest-cov >= 2.8.1
|
||||
tox >= 3.9.0
|
||||
flake8 >= 4.0.0
|
||||
types-python-dateutil >= 2.8.19.14
|
||||
|
Loading…
x
Reference in New Issue
Block a user