Skip to content

Migrate from hatch to uv #4

Migrate from hatch to uv

Migrate from hatch to uv #4

Workflow file for this run

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