Repository navigation
treaty rc12: why, observe, secrets, import, deploy, rollback, restart, data migrate on treaty #108
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: CI | |
| "on": | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: astral-sh/setup-uv@v10.1.0 | |
| with: | |
| python-version: "3.14" | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Lint | |
| run: uv run ruff check . | |
| - name: Type-check | |
| run: uv run mypy | |
| - name: Test | |
| run: uv run pytest | |
| - name: Validate example state | |
| run: uv run cloudfall config validate --project config/examples | |
| - name: Render Ansible inventory | |
| run: >- | |
| uv run cloudfall-engine inventory render --project config/examples | |
| --output tmp/ansible-inventory.json | |
| - name: Ansible syntax checks | |
| env: | |
| ANSIBLE_CONFIG: engine/ansible/ansible.cfg | |
| run: | | |
| for playbook in baseline bootstrap data deploy domains health inspect logging restart rollback services time; do | |
| uv run ansible-playbook --syntax-check \ | |
| --inventory config/examples/tmp/ansible-inventory.json \ | |
| "engine/ansible/playbooks/${playbook}.yml" | |
| done | |
| - name: Ansible lint | |
| env: | |
| ANSIBLE_CONFIG: engine/ansible/ansible.cfg | |
| run: uv run ansible-lint engine/ansible |