16
16
runs-on : ${{ matrix.os }}
17
17
permissions :
18
18
pull-requests : write
19
- name : ${{ matrix.os }} - ${{ matrix.python }}
19
+ name : ${{ matrix.os }} - ${{ matrix.python }} ${{ matrix.build }}
20
20
if : ${{ github.event_name != 'schedule' || (github.repository == 'python/pyperformance' && github.event_name == 'schedule') }}
21
21
strategy :
22
22
fail-fast : false
@@ -25,44 +25,54 @@ jobs:
25
25
os : [ubuntu-latest]
26
26
python : ["3.8", "3.9", "3.10", "3.11", "3.12"]
27
27
experimental : [false]
28
+ build : ['']
28
29
include :
29
30
# As the experimental task for the dev version.
30
31
- os : ubuntu-latest
31
32
python : " 3.13-dev"
32
33
experimental : true
34
+ build : ' '
35
+ - os : ubuntu-latest
36
+ python : " 3.13-dev"
37
+ experimental : true
38
+ build : ' free-threading'
33
39
# Also test PyPy, macOS, and Windows:
34
40
- os : ubuntu-latest
35
41
python : pypy-3.10
36
42
experimental : false
43
+ build : ' '
37
44
- os : ubuntu-latest
38
45
python : pypy-3.9
39
46
experimental : false
47
+ build : ' '
40
48
- os : macos-latest
41
49
python : " 3.12"
42
50
experimental : true
43
51
- os : windows-latest
44
52
python : " 3.12"
45
53
experimental : true
54
+ build : ' '
46
55
steps :
47
- - uses : actions/checkout@v3
56
+ - uses : actions/checkout@v4
48
57
- name : Set up Python ${{ matrix.python }}
49
- uses : actions/setup-python@v4
58
+ uses : actions/setup-python@v5
50
59
if : " !endsWith(matrix.python, '-dev')"
51
60
with :
52
61
python-version : ${{ matrix.python }}
53
62
- name : Set up Python ${{ matrix.python }} using deadsnakes
54
- uses : deadsnakes/action@v3.0 .0
63
+ uses : deadsnakes/action@v3.1 .0
55
64
if : " endsWith(matrix.python, '-dev')"
56
65
with :
57
66
python-version : ${{ matrix.python }}
67
+ nogil : ${{ matrix.build == 'free-threading' }}
58
68
- name : Install
59
69
# pyperformance must be installed:
60
70
# pyperformance/tests/test_compare.py imports it
61
71
run : |
62
72
python -m pip install --upgrade pip setuptools
63
73
python -m pip install -e .
64
74
- name : Display Python version
65
- run : python -c "import sys; print(sys. version)"
75
+ run : python --version -- version
66
76
- name : Run Tests
67
77
id : pyperformance
68
78
run : python -u -m pyperformance.tests
0 commit comments