Skip to content

fixed python install #2

fixed python install

fixed python install #2

Workflow file for this run

name: CI
on:
push:
branches: [main, master, release-candidate]
pull_request:
branches: [main, master, release-candidate]
permissions:
contents: read
jobs:
lint:
name: Lint & Format
runs-on: ubuntu-latest
if: >
github.event_name == 'push' ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- name: Ruff lint
run: uv run ruff check .
- name: Ruff format check
run: uv run ruff format --check .
typecheck:
name: Type Check
runs-on: ubuntu-latest
if: >
github.event_name == 'push' ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- name: Mypy
run: uv run mypy .
test:
name: Test
runs-on: ubuntu-latest
if: >
github.event_name == 'push' ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- name: Pytest
run: uv run pytest
build:
name: Build
runs-on: ubuntu-latest
needs: [lint, typecheck, test]
if: >
github.event_name == 'push' ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- name: Build package
run: uv build