python/{{ cookiecutter.project_slug }}/.woodpecker.yml
2023-05-20 23:11:08 +02:00

27 lines
678 B
YAML

pipeline:
test:
group: test
image: python:${PYTHON_VERSION}
pull: true
environment:
- POETRY_VIRTUALENVS_IN_PROJECT=true
commands:
- pip install poetry
- poetry install
- poetry run pytest
nix:
group: test
image: nixos/nix:latest
pull: true
commands:
- nix build --experimental-features 'nix-command flakes'
- nix build --experimental-features 'nix-command flakes' .#docker
when:
matrix:
PYTHON_VERSION: {{ cookiecutter. python_min_version}} # Still not sure about how to make flake for different python version
matrix:
PYTHON_VERSION:
- {{ cookiecutter. python_min_version}}