-
Notifications
You must be signed in to change notification settings - Fork 5
32 lines (30 loc) · 831 Bytes
/
pythonapp.yml
File metadata and controls
32 lines (30 loc) · 831 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
name: Python application
on:
push:
branches: [master]
pull_request:
jobs:
build:
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Full git history for setuptools_scm
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --extra dev
- name: Lint
run: |
uv run ruff check tdworkflow tests
uv run ruff format --check tdworkflow tests
uv run ty check tdworkflow
- name: Test with pytest
run: uv run pytest