Use uv for everything #2945
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: Full test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/ruff-action@v2 | |
with: | |
version: 0.6.2 | |
src: mikeio | |
- name: Set up uv | |
uses: astral-sh/setup-uv@v6 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: uv sync --group test | |
- name: Lint | |
run: make lint | |
- name: Type check | |
run: make typecheck | |
- name: Test | |
run: make test | |
- name: Build package | |
run: make build | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist-${{ matrix.python-version }} | |
path: dist/* |