Added python tests to Woodpecker Workflow
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Marcin-Ramotowski 2025-05-25 16:43:44 +00:00
parent c2df9d136e
commit 6d84bf694e
2 changed files with 12 additions and 15 deletions

12
.woodpecker/build.yaml Normal file
View File

@ -0,0 +1,12 @@
when:
- event: push
branch: woodpecker
steps:
- name: build
image: python:3.11.7-alpine
commands:
- python3 -m venv env
- source env/bin/activate
- pip install -r requirements.txt pytest
- python3 -m pytest --junit-xml=pytest_junit.xml

View File

@ -1,15 +0,0 @@
when:
- event: push
branch: woodpecker
steps:
- name: build
image: debian
commands:
- echo "This is the build step"
- echo "binary-data-123" > executable
- name: a-test-step
image: golang:1.16
commands:
- echo "Testing ..."
- ./executable