88 - synchronize
99
1010jobs :
11+ legacy-python-3-6 :
12+ runs-on : ubuntu-24.04
13+ container : ubuntu:20.04
14+ steps :
15+ - uses : actions/checkout@v7
16+ - name : Set up Python 3.6
17+ uses : actions/setup-python@v7
18+ with :
19+ python-version : " 3.6"
20+ - name : Display Python version
21+ run : python -c "import sys; print(sys.version)"
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ python -m pip install flake8 pytest pytest-mock
26+ python -m pip install -r requirements.txt
27+ python -m pip install --no-deps .
28+ - name : Lint with flake8
29+ run : python -m flake8 .
30+ - name : Test with pytest
31+ run : python -m pytest
32+
1133 build :
12- # compatible for py 3.6
13- runs-on : ubuntu-20.04
34+ runs-on : ${{ matrix.runner }}
1435 strategy :
15- # You can use PyPy versions in python-version.
1636 matrix :
17- python-version : ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
37+ include :
38+ - python-version : " 3.7"
39+ runner : ubuntu-22.04
40+ - python-version : " 3.8"
41+ runner : ubuntu-24.04
42+ - python-version : " 3.9"
43+ runner : ubuntu-24.04
44+ - python-version : " 3.10"
45+ runner : ubuntu-24.04
46+ - python-version : " 3.11"
47+ runner : ubuntu-24.04
48+ - python-version : " 3.12"
49+ runner : ubuntu-24.04
50+ - python-version : " 3.13"
51+ runner : ubuntu-24.04
52+ - python-version : " 3.14"
53+ runner : ubuntu-24.04
1854
1955 steps :
20- - uses : actions/checkout@v3
56+ - uses : actions/checkout@v7
2157 - name : Set up Python ${{ matrix.python-version }}
22- uses : actions/setup-python@v4
58+ uses : actions/setup-python@v7
2359 with :
2460 python-version : ${{ matrix.python-version }}
2561 # You can test your matrix by printing the current Python version
@@ -28,21 +64,56 @@ jobs:
2864 - name : Install dependencies
2965 run : |
3066 python -m pip install --upgrade pip
31- pip install flake8 pytest pytest-mock build
32- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
67+ python -m pip install flake8 pytest pytest-mock build
68+ if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
69+ python -m pip install --no-deps .
3370 - name : Lint with flake8
3471 run : |
3572 # stop the build if there are Python syntax errors
36- flake8 .
73+ python -m flake8 .
3774 - name : Test with pytest
3875 run : |
39- pytest
76+ python -m pytest
4077 - name : Audit concurrency, memory, and thread cleanup
41- if : matrix.python-version == '3.12'
78+ if : matrix.python-version == '3.12' || matrix.python-version == '3.14'
4279 run : python scripts/resource_audit.py --evaluations 20000 --workers 8
4380 - name : Build production distributions
44- if : matrix.python-version == '3.12'
81+ if : matrix.python-version == '3.12' || matrix.python-version == '3.14'
4582 run : python -m build
4683 - name : Verify wheel contains production packages only
47- if : matrix.python-version == '3.12'
84+ if : matrix.python-version == '3.12' || matrix.python-version == '3.14'
4885 run : python -c "import glob, zipfile; names = zipfile.ZipFile(glob.glob('dist/*.whl')[0]).namelist(); assert not any(name.startswith(('tests/', 'featbit_openfeature/')) for name in names)"
86+ - name : Install and smoke-test the built wheel
87+ if : matrix.python-version == '3.14'
88+ run : |
89+ python -m venv "$RUNNER_TEMP/featbit-wheel-test"
90+ "$RUNNER_TEMP/featbit-wheel-test/bin/python" -m pip install --upgrade pip
91+ "$RUNNER_TEMP/featbit-wheel-test/bin/python" -m pip install dist/*.whl
92+ "$RUNNER_TEMP/featbit-wheel-test/bin/python" -m pip check
93+ "$RUNNER_TEMP/featbit-wheel-test/bin/python" scripts/wheel_smoke.py \
94+ --bootstrap tests/fbclient_test_data.json \
95+ --expected-version-file release/package.json
96+
97+ minimum-dependencies :
98+ runs-on : ubuntu-24.04
99+ steps :
100+ - uses : actions/checkout@v7
101+ - name : Set up Python 3.14
102+ uses : actions/setup-python@v7
103+ with :
104+ python-version : " 3.14"
105+ - name : Install exact minimum dependencies
106+ run : |
107+ python -m pip install --upgrade pip
108+ python -m pip install pytest pytest-mock
109+ python -m pip install \
110+ certifi==2018.4.16 \
111+ urllib3==1.26.5 \
112+ python-dateutil==2.8.2 \
113+ websocket-client==1.0.0
114+ python -m pip install --no-deps .
115+ python -m pip check
116+ - name : Test with pytest
117+ run : python -m pytest
118+ - name : Audit concurrency, memory, and thread cleanup
119+ run : python scripts/resource_audit.py --evaluations 20000 --workers 8
0 commit comments