Switch to python alpine containers
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

Switched to basic python containers running on alpine, onto which the ci
steps simply install poetry.

Switching to nox for test automation across multiple python versions.
This commit is contained in:
Marty Oehme 2022-01-18 22:44:09 +01:00
parent 860bb1b01c
commit 3ad4d95229
Signed by: Marty
GPG Key ID: B7538B8F50A1C800

View File

@ -1,34 +1,42 @@
# branches: main
pipeline:
unit_tests:
image: mquade/poetry:3.9-1.1.11
commands:
- poetry config virtualenvs.create false
- poetry install
- pytest
code_lint:
image: mquade/poetry:3.9-1.1.11
image: python
commands:
- poetry config virtualenvs.create false
- pip install poetry
- poetry install
- pip install black
- echo "----------------- running lint ------------------"
- python --version && poetry --version && black --version
- black .
static_analysis:
image: mquade/poetry:3.9-1.1.11
unit_tests:
image: thekevjames/nox
commands:
- poetry config virtualenvs.create false
- pip install poetry
- poetry install
- echo "----------------- running tests ------------------"
- python --version && poetry --version && nox --version
- nox
static_analysis:
image: python
commands:
- pip install poetry
- poetry install
- pip install mypy
- echo "----------------- running analysis ------------------"
- python --version && poetry --version && mypy --version
- mypy .
build_dist:
image: mquade/poetry:3.9-1.1.11
image: python
commands:
- poetry config virtualenvs.create false
- pip install poetry
- poetry install
- echo "----------------- running analysis ------------------"
- python --version && poetry --version
- poetry build
when:
branch: main