-
Notifications
You must be signed in to change notification settings - Fork 295
29 lines (27 loc) · 893 Bytes
/
Copy pathpython.yaml
File metadata and controls
29 lines (27 loc) · 893 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
name: Check example files are linted and formatted
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
- name: Set up Python 3
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.11"
- name: Install uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- name: Set up virtual environment and install dependencies
run: |
uv venv .venv
uv pip install -r requirements-dev.txt
- name: Lint with ruff
run: |
uv run ruff check .
- name: Check formatting with black
run: |
uv run black . --check --verbose