-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (29 loc) · 1002 Bytes
/
python-app.yml
File metadata and controls
39 lines (29 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.14"
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Lint with Ruff check
run: uv run ruff check src --line-length=100
- name: Format with Ruff format
run: uv run ruff format src --line-length=100
- name: Install project so uv run tests can find source
run: uv pip install -e .
- name: Run tests
run: echo "Tests disabled as they need a database" #uv run pytest tests