-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (43 loc) · 1.23 KB
/
Copy pathdev.yaml
File metadata and controls
48 lines (43 loc) · 1.23 KB
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
40
41
42
43
44
45
46
47
48
name: Dev
on: ['push', 'pull_request']
permissions:
contents: read
jobs:
lint:
name: Lint and Typing Checks
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # 7.1.2
with:
enable-cache: true
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Run Linting
run: uv run ruff check
- name: Validate formatting
run: uv run ruff format --check
- name: Run Typing Checks
run: uv run mypy .
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # 7.1.2
with:
enable-cache: true
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Run Pytest
run: uv run pytest