15 unittest cases exercising the real script end to end: target selection, auth headers, request shape, success/failure, HTTP 401/400, unreachable host, polling to completion, and timeout. Runs in CI via .gitea/workflows/test.yml on push to main/dev* and on pull requests. No network or live Komodo instance required.
18 lines
302 B
YAML
18 lines
302 B
YAML
name: test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- dev*
|
|
pull_request:
|
|
|
|
jobs:
|
|
komodo-deploy-script:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Run komodo-deploy.sh tests
|
|
run: python3 -m unittest -v test_komodo_deploy
|