Fix minor uv version in test workflow #3
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: install-and-test-workflow | |
| on: [push] | |
| jobs: | |
| install-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv and set the python version | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: 0.7.x | |
| python-version: 3.12 | |
| - name: Install dependencies | |
| run: | | |
| uv sync --all-extras | |
| - name: Test with pytest | |
| run: | | |
| uv run --with coverage coverage run -m pytest -sv | |
| - name: Submit to coveralls | |
| continue-on-error: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| uv run --with coveralls coveralls --service=github | |
| ruff-linting: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/ruff-action@v3 | |
| - run: ruff check . | |
| # Uncomment the following line to enable format check | |
| # - run: ruff format --check . |