Run something useful for woodpecker
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Guillem Borrell 2024-06-11 18:58:56 +02:00
parent 1cc59d3707
commit 7503e6f94c

View file

@ -1,9 +1,10 @@
pipeline:
build-image:
image: docker
image: python:3.12-slim
commands:
- docker build . -t git.guillemborrell.es/guillem/hellocomputer:0.1
- docker login -u guillem -p $GITEA_API_KEY git.guillemborrell.es
- docker push git.guillemborrell.es/guillem/hellocomputer:0.1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- pip install uv
- uv pip install --python /usr/local/bin/python3 --no-cache -r requirements.txt
- uv pip install --python /usr/local/bin/python3 -e .
- uv pip install --python /usr/local/bin/python3 pytest
- pytest ./tests/test_user.py
- pytest ./tests/test_data.py