python/{{ cookiecutter.project_slug }}/.woodpecker.yml

27 lines
678 B
YAML
Raw Normal View History

2023-05-19 17:16:55 +02:00
pipeline:
2023-05-19 19:35:18 +02:00
test:
2023-05-20 23:11:08 +02:00
group: test
2023-05-19 19:35:18 +02:00
image: python:${PYTHON_VERSION}
pull: true
environment:
- POETRY_VIRTUALENVS_IN_PROJECT=true
2023-05-19 17:16:55 +02:00
commands:
2023-05-19 19:35:18 +02:00
- pip install poetry
- poetry install
- poetry run pytest
2023-05-20 23:11:08 +02:00
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
2023-05-19 19:35:18 +02:00
matrix:
PYTHON_VERSION:
- {{ cookiecutter. python_min_version}}