Fix typo in README heading #25
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: Test Count And Coverage | |
| on: | |
| push: | |
| branches: | |
| - main # Adjust this if your main branch has a different name | |
| jobs: | |
| count_tests: | |
| name: Count Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install 3.13 | |
| - name: Install the project | |
| run: uv sync --all-extras --dev | |
| - name: Count Python tests | |
| run: | | |
| PYTHON_TEST_COUNT=$(uv run python3 -m pytest --collect-only -q . | grep "tests collected" | awk '{print $1}' | sed 's/[^0-9]//g') | |
| echo "PYTHON_TEST_COUNT=$PYTHON_TEST_COUNT" >> $GITHUB_ENV | |
| - name: Create test count badge | |
| uses: schneegans/dynamic-badges-action@v1.7.0 | |
| with: | |
| auth: ${{ secrets.GIST_SECRET }} | |
| gistID: 9f8457cc9d44ab16ff8b9f1a977d25bb | |
| filename: test_count_kiln.json | |
| label: Test Count | |
| message: ${{ env.PYTHON_TEST_COUNT }} | |
| color: brightgreen | |