codesmidgen/.woodpecker.yaml

25 lines
555 B
YAML
Raw Normal View History

steps:
lint:
image: python:3.11
commands:
- pip install hatch
- hatch run lint:run
test:
image: python:3.11
commands:
- pip install hatch
2023-07-28 06:14:10 +00:00
- cp codesmidgen.example.cfg codesmidgen.cfg
- hatch run tests:run
publish-package:
image: python:3.11
commands:
- pip install hatch
2023-07-28 05:23:49 +00:00
- hatch build
- hatch publish --repo $PIP_REPOSITORY --user $PIP_USERNAME --auth $PIP_TOKEN --no-prompt
secrets:
- pip_repository
- pip_username
- pip_token
when:
event: tag