-
Notifications
You must be signed in to change notification settings - Fork 15
33 lines (29 loc) · 817 Bytes
/
python-app.yml
File metadata and controls
33 lines (29 loc) · 817 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
# 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 checks
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: astral-sh/setup-uv@v6.1.0
- name: Install dependencies
run: uv sync
- name: Lint with ruff
run: uvx ruff check .
- name: Format with ruff
run: uvx ruff format --check .
- name: Build
run: uv build
- uses: actions/upload-artifact@v4
with:
name: wheel
path: dist/*.whl