Merge pull request #1301 from VisLab/enhance_search #142
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: CI_COV | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| platform: [ubuntu-latest] | |
| python-version: [ "3.10" ] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| cache-dependency-glob: "**/pyproject.toml" | |
| - name: Create virtual environment | |
| run: | | |
| uv venv --clear .venv | |
| echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH | |
| # Install dependencies | |
| - name: Install dependencies | |
| run: uv pip install -e ".[docs,test]" | |
| # Run unittest with coverage | |
| - name: Test with unittest and coverage | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: | | |
| coverage run -m unittest discover tests | |
| # Run spec tests with coverage | |
| - name: Run spec_test coverage | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: | | |
| coverage run --append -m unittest discover spec_tests | |
| coverage xml | |
| # Upload coverage to qlty | |
| - name: Upload coverage to qlty | |
| uses: qltysh/qlty-action/coverage@v2 | |
| with: | |
| oidc: true | |
| files: coverage.xml |