-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (63 loc) · 1.86 KB
/
Copy pathci.yml
File metadata and controls
75 lines (63 loc) · 1.86 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# .github/workflows/ci.yml
name: 🧪 Continuous Integration
run-name: ✅ CI Validation • ${{ github.ref_name }}
# =========================================================
# 🧪 Continuous Integration Workflow
# ---------------------------------------------------------
# Purpose:
# - Run tests on every push to main
# - Run tests on every Pull Request
# - Ensure compatibility across multiple Python versions
#
# Why matrix?
# - Guarantees your package works across Python versions
# =========================================================
on:
push:
branches:
- main
- develop
- dev
tags:
- "v*"
pull_request:
branches:
- main
- develop
- dev
workflow_dispatch:
jobs:
test:
name: 🧪 Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
# -----------------------------------------------------
# Run tests across multiple Python versions
# -----------------------------------------------------
strategy:
fail-fast: false
matrix:
python-version:
- "3.11"
# - "3.12"
# - "3.13"
- "3.14"
steps:
# 📥 Checkout repository
- name: 📥 Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
# 🐍 Setup Python
- name: 🐍 Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip" # ⚡ Speeds up dependency installation
# 📦 Install dependencies (editable mode with dev deps)
- name: 📦 Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
# ✅ FULL VALIDATION
- name: ✅ Run validation workflow
run: make check-ci