From 893d7fc00031330a48c4c4a59d1876bcab86acbc Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 18 Jan 2022 22:44:09 +0100 Subject: [PATCH] Switch to python alpine containers 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. --- .woodpecker.yml | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index f11b3a3..77ec2f4 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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 - - black . + - \# "----------------- running lint ------------------" + - python --version && poetry --version && black --version + - poetry run black . + + unit_tests: + image: thekevjames/nox + commands: + - pip install poetry + - poetry install + - \# "----------------- running tests ------------------" + - python --version && poetry --version && nox --version + - poetry run nox static_analysis: - image: mquade/poetry:3.9-1.1.11 + image: python commands: - - poetry config virtualenvs.create false + - pip install poetry - poetry install - pip install mypy - - mypy . + - \# "----------------- running analysis ------------------" + - python --version && poetry --version && mypy --version + - poetry run mypy . build_dist: - image: mquade/poetry:3.9-1.1.11 + image: python commands: - - poetry config virtualenvs.create false + - pip install poetry - poetry install + - \# "----------------- running analysis ------------------" + - python --version && poetry --version - poetry build when: branch: main