Merge pull request #25 from SpokaneTech/add_code_coverage #99
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: Unittest Execution (pytest) | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| pytest: | |
| runs-on: ubuntu-latest | |
| name: "pytest" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| run: pip install uv | |
| - uses: davidslusser/actions_python_pytest@v1.0.1 | |
| with: | |
| src: "" | |
| options: "--cov --cov-report=term-missing --cov-report=xml" | |
| pip_install_command: "uv pip install -e .[dev] --system" | |
| - name: Upload coverage to CodeAnt AI | |
| if: github.ref == 'refs/heads/main' | |
| uses: CodeAnt-AI/codeant-coverage-action@v0.0.5 | |
| with: | |
| access_token: ${{ secrets.ACCESS_TOKEN_GITHUB }} | |
| coverage_file: coverage.xml |