diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml new file mode 100644 index 0000000..7ae7109 --- /dev/null +++ b/.woodpecker/build.yaml @@ -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 diff --git a/.woodpecker/my-first-workflow.yaml b/.woodpecker/my-first-workflow.yaml deleted file mode 100644 index 70cc586..0000000 --- a/.woodpecker/my-first-workflow.yaml +++ /dev/null @@ -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