fix(deps): update dependency opentelemetry-instrumentation-chromadb to ~=0.51.0 #172
Workflow file for this run
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: Python SDK Tests | |
| on: | |
| pull_request: | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| permissions: | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| working-directory: ./ | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest pytest-cov anyio pytest-asyncio | |
| pip install -e . | |
| - name: Run tests | |
| working-directory: ./ | |
| run: | | |
| pytest tests/ --cov=basalt --cov-report=term --cov-report=xml | |
| echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_OUTPUT | |
| echo "COVERAGE_PCT=$(python -c "import xml.etree.ElementTree as ET; tree = ET.parse('coverage.xml'); root = tree.getroot(); print(f'{float(root.attrib[\"line-rate\"]) * 100:.2f}')")" >> $GITHUB_OUTPUT | |
| echo "TEST_COUNT=$(python -c "import xml.etree.ElementTree as ET; tree = ET.parse('coverage.xml'); root = tree.getroot(); print(root.find('.//metrics').attrib['tests'])")" >> $GITHUB_OUTPUT | |
| id: test_results | |
| - name: Create result file | |
| run: | | |
| mkdir -p test-results | |
| echo "${{ steps.test_results.outputs.COVERAGE_PCT }}" > test-results/coverage.txt | |
| echo "${{ steps.test_results.outputs.TEST_COUNT }}" > test-results/test-count.txt | |
| - name: Upload test results | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 | |
| with: | |
| name: test-results-${{ matrix.python-version }} | |
| path: test-results/ | |