fix ci #5
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 | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: "3.11" | |
| enable-cache: true | |
| - name: Install project | |
| run: uv sync --all-extras --dev | |
| - name: Run pre-commit | |
| run: uv run pre-commit run --all-files | |
| - name: Run unit tests | |
| run: uv run python -m unittest discover -s tests -v | |
| - name: Compile sources | |
| run: uv run python -m compileall src tests | |
| - name: Build artifacts | |
| run: uv run python -m build --no-isolation |