Skip to content

Create GitHub workflow #2

Create GitHub workflow

Create GitHub workflow #2

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python application
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
# https://docs.astral.sh/uv/guides/integration/github/#setting-up-python
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: Install the project
run: uv sync --all-extras --dev
# https://docs.astral.sh/ruff/integrations
- name: Run Ruff
run: uv run ruff check --output-format=github .
- name: Run Format
run: uv run ruff ruff format --diff