-
Notifications
You must be signed in to change notification settings - Fork 17
42 lines (32 loc) · 897 Bytes
/
Copy pathpytest.yml
File metadata and controls
42 lines (32 loc) · 897 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
40
41
42
name: CI
on:
push:
branches: [ master ] # Or your default branch
pull_request:
branches: [ master ] # Or your default branch
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12'] # Match requires-python in pyproject.toml
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up uv
uses: astral-sh/setup-uv@v6
- name: Install dependencies
run: uv sync --locked --all-extras # Installs base and dev dependencies from uv.lock
shell: bash
- name: Run Mypy
run: uv run mypy .
shell: bash
- name: Run Ruff Check
run: uv run ruff check .
shell: bash
- name: Run Pytest
run: uv run pytest
shell: bash