name: PR Checks on: pull_request: branches: - '*' jobs: comment_coverage: name: Comment coverage on PR runs-on: ubuntu-latest steps: - name: ๐Ÿ”€ checkout uses: actions/checkout@v4 with: fetch-depth: 0 token: "${{ secrets.GITHUB_TOKEN }}" submodules: 'recursive' - name: ๐Ÿ“ฆ install uv uses: astral-sh/setup-uv@v5 - name: ๐Ÿ python uses: actions/setup-python@v5 with: python-version-file: "pyproject.toml" - name: ๐Ÿ“ฆ sync depedencies run: | uv sync uv sync --group test - name: configure git run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" - name: ๐Ÿงช run coverage run: | uv run pytest --cov --junitxml=pytest.xml --cov-report=term-missing | tee pytest-coverage.txt continue-on-error: true - name: ๐Ÿ“Š comment coverage uses: MishaKav/pytest-coverage-comment@main with: pytest-coverage-path: pytest-coverage.txt junitxml-path: pytest.xml