fix tests
Some checks failed
ci/woodpecker/push/tests Pipeline failed

This commit is contained in:
Ivan Schaller 2022-07-19 01:06:42 +02:00
parent 76eb9a54b6
commit 8c2000d2aa
5 changed files with 12 additions and 12 deletions

View file

@ -24,7 +24,7 @@ pipeline:
image: cr.44net.ch/ci-plugins/tests image: cr.44net.ch/ci-plugins/tests
pull: true pull: true
commands: commands:
- hatch build - python3 -m hatch build
# create release-notes # create release-notes
create-release-notes: create-release-notes:
@ -78,4 +78,4 @@ pipeline:
- source: pypi_token - source: pypi_token
target: HATCH_PYPI_AUTH target: HATCH_PYPI_AUTH
commands: commands:
- hatch publish - python3 -m hatch publish

View file

@ -24,7 +24,7 @@ pipeline:
image: cr.44net.ch/ci-plugins/tests image: cr.44net.ch/ci-plugins/tests
pull: true pull: true
commands: commands:
- hatch build - python3 -m hatch build
# create release-notes # create release-notes
test-create-release-notes: test-create-release-notes:

View file

@ -24,4 +24,4 @@ pipeline:
image: cr.44net.ch/ci-plugins/multipy:1-linux-amd64 image: cr.44net.ch/ci-plugins/multipy:1-linux-amd64
pull: true pull: true
commands: commands:
- tox - python3 -m tox

View file

@ -27,4 +27,4 @@ pipeline:
- grep -v img2pdf contrib/requirements_dev.txt > contrib/requirements_dev_arm64.txt - grep -v img2pdf contrib/requirements_dev.txt > contrib/requirements_dev_arm64.txt
- rm -f contrib/requirements_dev.txt - rm -f contrib/requirements_dev.txt
- mv contrib/requirements_dev_arm64.txt contrib/requirements_dev.txt - mv contrib/requirements_dev_arm64.txt contrib/requirements_dev.txt
- tox - python3 -m tox

View file

@ -22,29 +22,29 @@ pipeline:
image: cr.44net.ch/ci-plugins/tests image: cr.44net.ch/ci-plugins/tests
pull: true pull: true
commands: commands:
- black --check --diff . - python3 -m black --check --diff .
# check imports - python # check imports - python
test-isort: test-isort:
image: cr.44net.ch/ci-plugins/tests image: cr.44net.ch/ci-plugins/tests
pull: true pull: true
commands: commands:
- isort --check-only --diff . - python3 -m isort --check-only --diff .
# check unused and missing imports # check unused and missing imports
test-autoflake: test-autoflake:
image: cr.44net.ch/ci-plugins/tests image: cr.44net.ch/ci-plugins/tests
pull: true pull: true
commands: commands:
- autoflake --remove-all-unused-imports -r -v mangadlp/ - python3 -m autoflake --remove-all-unused-imports -r -v mangadlp/
- autoflake --check --remove-all-unused-imports -r -v mangadlp/ - python3 -m autoflake --check --remove-all-unused-imports -r -v mangadlp/
# check static typing - python # check static typing - python
test-mypy: test-mypy:
image: cr.44net.ch/ci-plugins/tests image: cr.44net.ch/ci-plugins/tests
pull: true pull: true
commands: commands:
- mypy --install-types --non-interactive mangadlp/ - python3 -m mypy --install-types --non-interactive mangadlp/
# test code with different python versions # test code with different python versions
test-tox-pytest: test-tox-pytest:
@ -53,7 +53,7 @@ pipeline:
image: cr.44net.ch/ci-plugins/multipy:1-linux-amd64 image: cr.44net.ch/ci-plugins/multipy:1-linux-amd64
pull: true pull: true
commands: commands:
- tox -e basic - python3 -m tox -e basic
# generate coverage report # generate coverage report
test-tox-coverage: test-tox-coverage:
@ -63,7 +63,7 @@ pipeline:
image: cr.44net.ch/ci-plugins/multipy:1-linux-amd64 image: cr.44net.ch/ci-plugins/multipy:1-linux-amd64
pull: true pull: true
commands: commands:
- tox -e coverage - python3 -m tox -e coverage
# analyse code with sonarqube and upload it # analyse code with sonarqube and upload it
sonarqube-analysis: sonarqube-analysis: