Merge pull request #26 from precious112/integration/SAAS #53
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: | |
| agent-lint: | |
| name: Agent - Lint & Type Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Install dependencies | |
| working-directory: packages/agent | |
| run: uv pip install --system -e ".[dev]" | |
| - name: Lint | |
| working-directory: packages/agent | |
| run: | | |
| ruff check src/ tests/ | |
| ruff format --check src/ tests/ | |
| - name: Type check | |
| working-directory: packages/agent | |
| run: mypy src/argus_agent/ --ignore-missing-imports | |
| agent-test: | |
| name: Agent - Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Install dependencies | |
| working-directory: packages/agent | |
| run: uv pip install --system -e ".[dev]" | |
| - name: Run tests | |
| working-directory: packages/agent | |
| run: python -m pytest tests/ -v --tb=short | |
| web-lint: | |
| name: Web UI - Lint & Type Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Install dependencies | |
| working-directory: packages/web | |
| run: npm install | |
| - name: Type check | |
| working-directory: packages/web | |
| run: npm run type-check | |
| web-build: | |
| name: Web UI - Build | |
| runs-on: ubuntu-latest | |
| needs: web-lint | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Install dependencies | |
| working-directory: packages/web | |
| run: npm install | |
| - name: Build | |
| working-directory: packages/web | |
| run: npm run build | |
| docker-build: | |
| name: Docker Build | |
| runs-on: ubuntu-latest | |
| needs: [agent-test, web-build] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build Docker image | |
| run: docker compose build argus |