-
Notifications
You must be signed in to change notification settings - Fork 3
90 lines (88 loc) · 2.44 KB
/
ctu.yml
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: CacheTools Utils Package
on:
push:
branches: [ "main" ]
# push_request: ?
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python:
- version: "pypy3.10"
cover: 100.0
deps: doc,dev,tests,crypt
- version: "pypy3.11"
cover: 100.0
deps: doc,dev,tests,crypt
- version: "3.10"
cover: 100.0
deps: doc,dev,tests,crypt
- version: "3.11"
cover: 100.0
deps: doc,dev,tests,crypt
- version: "3.12"
cover: 100.0
deps: doc,dev,tests,crypt
- version: "3.13"
cover: 100.0
deps: doc,dev,tests,crypt
- version: "3.13t"
# 2025-03-07 KO crypt => cryptography
cover: 84.0
env:
PYTHON_GIL: 0
deps: doc,dev,tests
- version: "3.13t"
cover: 84.0
env:
PYTHON_GIL: 1
deps: doc,dev,tests
- version: "3.14"
cover: 100.0
deps: doc,dev,tests,crypt
- version: "3.14t"
cover: 84.0
env:
PYTHON_GIL: 0
deps: doc,dev,tests
- version: "3.14t"
cover: 84.0
env:
PYTHON_GIL: 1
deps: doc,dev,tests
steps:
# Setup
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python.version }}
# uses: actions/setup-python@v5
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python.version }}
allow-prereleases: true
cache: "pip"
# Dependencies
- name: Install Python dependencies and module
run: make DEPS=${{ matrix.python.deps }} dev
- name: Start Redis
uses: supercharge/[email protected]
- name: Start MemCached
uses: niden/actions-memcached@v7
# Checks
# - name: Check with black
# run: black --check CacheToolsUtils.py
- name: Check with flake8
run: make check.flake8
- name: Check the docs
run: make check.docs
- name: Check with pytest
run: make check.pytest
- name: Check with coverage
run: make COVER=${{ matrix.python.cover }} check.coverage
- name: Check with pyright
run: make check.pyright
# 2025-03-07: KO with 3.13t because types-redis requires cryptography
# - name: Check with mypy
# # mypy is much too slow, this is a pain:-/
# run: make check.mypy