Repository navigation
Add the judge video and Devpost submission kit #138
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: | |
| branches: [main] | |
| jobs: | |
| lint-yaml: | |
| name: Lint YAML files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install yamllint | |
| run: pip install yamllint | |
| - name: Lint all YAML files | |
| run: | | |
| yamllint -d "{extends: relaxed, rules: {line-length: {max: 150}}}" \ | |
| security/ cluster/ observability/ || true | |
| lint-python: | |
| name: Lint and test Python agent | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: pip install -r agent/requirements.txt | |
| - name: Lint agent source | |
| run: | | |
| ruff check agent/src/ || true | |
| - name: Run unit tests | |
| run: | | |
| cd agent && python -m pytest tests/ -v | |
| - name: Build Docker image | |
| run: | | |
| docker build -t argus-agent:ci agent/ | |
| validate-manifests: | |
| name: Validate Kubernetes manifests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install kubectl | |
| uses: azure/setup-kubectl@v3 | |
| - name: Dry-run validate cluster manifests | |
| run: | | |
| kubectl apply --dry-run=client -f cluster/namespaces/namespaces.yaml || true |