Switch to python alpine containers
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
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:
parent
860bb1b01c
commit
436ccb0cd3
|
@ -1,34 +1,42 @@
|
||||||
# branches: main
|
# branches: main
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
unit_tests:
|
|
||||||
image: mquade/poetry:3.9-1.1.11
|
|
||||||
commands:
|
|
||||||
- poetry config virtualenvs.create false
|
|
||||||
- poetry install
|
|
||||||
- pytest
|
|
||||||
|
|
||||||
code_lint:
|
code_lint:
|
||||||
image: mquade/poetry:3.9-1.1.11
|
image: python
|
||||||
commands:
|
commands:
|
||||||
- poetry config virtualenvs.create false
|
- curl -sSL https://install.python-poetry.org | python3 -
|
||||||
- poetry install
|
- poetry install
|
||||||
- pip install black
|
- pip install black
|
||||||
|
- echo "----------------- running lint ------------------"
|
||||||
|
- python --version && poetry --version && black --version
|
||||||
- black .
|
- black .
|
||||||
|
|
||||||
static_analysis:
|
unit_tests:
|
||||||
image: mquade/poetry:3.9-1.1.11
|
image: thekevjames/nox
|
||||||
commands:
|
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
|
- poetry install
|
||||||
- pip install mypy
|
- pip install mypy
|
||||||
|
- echo "----------------- running analysis ------------------"
|
||||||
|
- python --version && poetry --version && mypy --version
|
||||||
- mypy .
|
- mypy .
|
||||||
|
|
||||||
build_dist:
|
build_dist:
|
||||||
image: mquade/poetry:3.9-1.1.11
|
image: python
|
||||||
commands:
|
commands:
|
||||||
- poetry config virtualenvs.create false
|
- curl -sSL https://install.python-poetry.org | python3 -
|
||||||
- poetry install
|
- poetry install
|
||||||
|
- echo "----------------- running analysis ------------------"
|
||||||
|
- python --version && poetry --version
|
||||||
- poetry build
|
- poetry build
|
||||||
when:
|
when:
|
||||||
branch: main
|
branch: main
|
||||||
|
|
Loading…
Reference in New Issue