-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (45 loc) · 1.3 KB
/
ci.yml
File metadata and controls
49 lines (45 loc) · 1.3 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
49
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: continuous-integration
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.13t", "3.14", "3.14t", "3.15.0-alpha.2"]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.9.11"
- name: Run ruff
run: |
uvx ruff check
uvx ruff format --check
- name: Run mypy
run: |
uv run mypy
- name: Building
run: |
uv build
- name: Installing
run: |
uv pip install dist/paramclasses-0.4.3.dev0-py3-none-any.whl
- name: Run pytest with coverage
run: |
uv run pytest --cov-report=xml
- name: Upload coverage report to Codecov (Ubuntu, python3.14)
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}