Skip to content

Update SDK Tag Filter Models to Support Multi-Type Values #6

Update SDK Tag Filter Models to Support Multi-Type Values

Update SDK Tag Filter Models to Support Multi-Type Values #6

Workflow file for this run

name: CI - Instana Python SDK Sanity Testing
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch: # Allow manual triggering
jobs:
sanity-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt
- name: Install SDK in editable mode
run: pip install -e .
- name: Make sanity test script executable
run: chmod +x sanity_test.sh
- name: Run sanity tests
run: ./sanity_test.sh
- name: Run generated unit tests
run: |
pytest test/ -v --tb=short --maxfail=5 --junit-xml=test-results.xml
continue-on-error: true # Don't fail CI if tests fail (tests are stubs)
- name: Upload sanity test report (if generated)
uses: actions/upload-artifact@v4
if: always()
with:
name: sanity-test-report-python-${{ matrix.python-version }}
path: sanity_test_report_*.txt
continue-on-error: true # Don't fail if no report files
- name: Upload unit test results
uses: actions/upload-artifact@v4
if: always()
with:
name: unit-test-results-python-${{ matrix.python-version }}
path: test-results.xml
continue-on-error: true # Don't fail if no test results
notify:
runs-on: ubuntu-latest
needs: sanity-test
if: always()
steps:
- name: Notify success
if: needs.sanity-test.result == 'success'
run: |
echo "✅ All sanity tests passed! SDK is ready for production."
- name: Notify failure
if: needs.sanity-test.result == 'failure'
run: |
echo "❌ Sanity tests failed! Please check the logs and fix issues."
exit 1