diff --git a/.woodpecker.yml b/.woodpecker.yml index f11b3a3..39e32ce 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 + - curl -sSL https://install.python-poetry.org | python3 - - 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 + - curl -sSL https://install.python-poetry.org | python3 - + - poetry install + - echo "----------------- running tests ------------------" + - python --version && poetry --version && nox --version + - nox + + static_analysis: + image: python + commands: + - curl -sSL https://install.python-poetry.org | python3 - - 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 + - curl -sSL https://install.python-poetry.org | python3 - - poetry install + - echo "----------------- running analysis ------------------" + - python --version && poetry --version - poetry build when: branch: main