Migrate from Poetry to uv #14
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: # Will run on all branch pushes | |
| pull_request: # Will run on all PRs | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| - name: Install dependencies | |
| run: | | |
| uv sync | |
| - name: Run pre-commit hooks (formatters, linters) | |
| run: | | |
| uv run pre-commit run --all-files | |
| # If ever there are tests to run, uncomment the following lines. | |
| # | |
| # - name: Run tests | |
| # run: | | |
| # uv run pytest --cov --cov-report=term-missing |