Create a scripted demo environment that works around the operator while it's broken. #934
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: Prometheus Rules Tests | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - '_test/**' | |
| - 'pelorus-operator/helm-charts/pelorus/**' | |
| - '.github/workflows/prometheus-rules.yml' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - '_test/**' | |
| - 'pelorus-operator/helm-charts/pelorus/**' | |
| - '.github/workflows/prometheus-rules.yml' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| cache: 'pip' | |
| cache-dependency-path: | | |
| **/requirements*.txt | |
| pyproject.toml | |
| - name: Install dependencies | |
| run: | | |
| make dev-env | |
| - name: Check for formatting | |
| run: | | |
| make test-prometheusrules |