Added python tests to Woodpecker Workflow
Some checks failed
ci/woodpecker/push/build Pipeline failed
Some checks failed
ci/woodpecker/push/build Pipeline failed
This commit is contained in:
parent
c2df9d136e
commit
6d84bf694e
12
.woodpecker/build.yaml
Normal file
12
.woodpecker/build.yaml
Normal 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
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user