test_flake_poetry2nix/.woodpecker.yml

35 lines
925 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 -o image_link --experimental-features 'nix-command flakes' .#docker
- cp image_link image
when:
matrix:
PYTHON_VERSION: 3.10 # Still not sure about how to make flake for different python version
push_container:
image: almalinux/podman:latest
pull: true
commands:
- podman login -u histausse -p $GITEA_TOKEN git.pains-perdus.fr
- podman push test_flake_poetry2nix:latest git.pains-perdus.fr/histausse/test_flake_poetry2nix:latest
matrix:
PYTHON_VERSION:
- 3.10
- 3.11