|
8 | 8 | - 'asap-tools/**' |
9 | 9 | - 'asap-tools/data-sources/prometheus-exporters/**' |
10 | 10 | - 'asap-tools/execution-utilities/**' |
| 11 | + - 'asap-summary-ingest/**' |
11 | 12 | - 'asap-common/dependencies/py/**' |
12 | 13 | - '.github/workflows/python.yml' |
13 | 14 | pull_request: |
|
18 | 19 | - 'asap-tools/**' |
19 | 20 | - 'asap-tools/data-sources/prometheus-exporters/**' |
20 | 21 | - 'asap-tools/execution-utilities/**' |
| 22 | + - 'asap-summary-ingest/**' |
21 | 23 | - 'asap-common/dependencies/py/**' |
22 | 24 | - '.github/workflows/python.yml' |
23 | 25 | workflow_dispatch: |
|
39 | 41 | utilities: ${{ steps.filter.outputs.utilities }} |
40 | 42 | prometheus_exporters: ${{ steps.filter.outputs.prometheus_exporters }} |
41 | 43 | execution_utilities: ${{ steps.filter.outputs.execution_utilities }} |
| 44 | + summary_ingest: ${{ steps.filter.outputs.summary_ingest }} |
42 | 45 | steps: |
43 | 46 | - uses: actions/checkout@v4 |
44 | 47 | - uses: dorny/paths-filter@v2 |
|
57 | 60 | execution_utilities: |
58 | 61 | - 'asap-tools/execution-utilities/**' |
59 | 62 | - 'asap-common/dependencies/py/**' |
| 63 | + summary_ingest: |
| 64 | + - 'asap-summary-ingest/**' |
| 65 | + - 'asap-common/dependencies/py/**' |
60 | 66 |
|
61 | 67 | test-prometheus-client: |
62 | 68 | needs: detect-changes |
@@ -182,3 +188,21 @@ jobs: |
182 | 188 | flake8 . --config=../../.flake8 --count --select=E9,F63,F7,F82 --show-source --statistics |
183 | 189 | # Exit-zero treats all errors as warnings |
184 | 190 | flake8 . --config=../../.flake8 --count --exit-zero --max-complexity=10 --statistics |
| 191 | +
|
| 192 | + test-summary-ingest: |
| 193 | + needs: detect-changes |
| 194 | + if: needs.detect-changes.outputs.summary_ingest == 'true' |
| 195 | + runs-on: ubuntu-latest |
| 196 | + steps: |
| 197 | + - uses: actions/checkout@v4 |
| 198 | + - name: Set up Python |
| 199 | + uses: actions/setup-python@v4 |
| 200 | + with: |
| 201 | + python-version: '3.11' |
| 202 | + - name: Install dependencies |
| 203 | + run: | |
| 204 | + python -m pip install --upgrade pip |
| 205 | + pip install -e asap-common/dependencies/py/promql_utilities/ |
| 206 | + pip install pytest pyyaml jinja2 |
| 207 | + - name: Run pytest |
| 208 | + run: python -m pytest asap-summary-ingest/tests/ -v |
0 commit comments