Migrate from hatch to uv #4
Workflow file for this run
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: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| # All steps will run for each Python version inside this container | |
| container: | |
| image: python:${{ matrix.python-version }}-slim | |
| steps: | |
| # Check out the code onto the runner host, | |
| # but it's automatically available inside the container. | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| run: pip install uv | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Check formatting with Ruff | |
| run: uv run ruff format --check | |
| # TODO(dwnoble): Fix formatting issues in datacommons-schema and uncomment these | |
| #- name: Lint with Ruff | |
| # run: uv run ruff check | |
| - name: Run tests | |
| run: | | |
| # Enable parallel test execution | |
| uv run pytest |