Merge pull request #126 from benner/docs/bump-version-pins-to-v0.22.3 #59
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: Coverage Baseline | |
| on: # yamllint disable-line rule:truthy | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| baseline: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| # yamllint disable-line rule:line-length | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Install uv | |
| # yamllint disable-line rule:line-length | |
| uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # ratchet:astral-sh/setup-uv@v8.2.0 | |
| - name: Cache NLTK data | |
| # yamllint disable-line rule:line-length | |
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: ~/nltk_data | |
| key: nltk-averaged-perceptron-tagger-punkt | |
| - name: Run tests with coverage | |
| run: uv run --dev pytest tests/ --cov=git_commit_guard --cov-report=xml | |
| - name: Upload coverage baseline | |
| # yamllint disable-line rule:line-length | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # ratchet:actions/upload-artifact@v7 | |
| with: | |
| name: main-coverage | |
| path: coverage.xml |