39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
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: quay.io/podman/stable
|
|
pull: true
|
|
commands:
|
|
- podman login -u histausse -p $GITEA_TOKEN git.pains-perdus.fr
|
|
- podman push image git.pains-perdus.fr/histausse/test_flake_poetry2nix:latest
|
|
secrets: [ gitea_token ]
|
|
when:
|
|
matrix:
|
|
PYTHON_VERSION: 3.10 # Still not sure about how to make flake for different python version
|
|
|
|
matrix:
|
|
PYTHON_VERSION:
|
|
- 3.10
|
|
- 3.11
|