@@ -14,25 +14,37 @@ jobs:
14
14
15
15
test :
16
16
runs-on : ${{ matrix.os }}
17
+ permissions :
18
+ pull-requests : write
17
19
name : ${{ matrix.os }} - ${{ matrix.python }}
18
20
strategy :
19
21
fail-fast : false
20
22
matrix :
21
23
# Test all supported versions on Ubuntu:
22
24
os : [ubuntu-latest]
23
- python : ["3.7", "3.8", "3.9", "3.10", 3.11-dev, 3.12-dev]
25
+ python : ["3.7", "3.8", "3.9", "3.10", "3.11"]
26
+ experimental : [false]
24
27
include :
28
+ # As the experimental task for the dev version.
29
+ - os : ubuntu-latest
30
+ python : " 3.12-dev"
31
+ experimental : true
25
32
# Also test PyPy, macOS, and Windows:
26
33
- os : ubuntu-latest
27
34
python : pypy-3.9
35
+ experimental : false
28
36
- os : ubuntu-latest
29
37
python : pypy-3.8
38
+ experimental : false
30
39
- os : ubuntu-latest
31
40
python : pypy-3.7
41
+ experimental : false
32
42
- os : macos-latest
33
43
python : " 3.10"
44
+ experimental : false
34
45
- os : windows-latest
35
46
python : " 3.10"
47
+ experimental : false
36
48
steps :
37
49
- uses : actions/checkout@v2
38
50
- name : Set up Python ${{ matrix.python }}
54
66
- name : Display Python version
55
67
run : python -c "import sys; print(sys.version)"
56
68
- name : Run Tests
69
+ id : pyperformance
57
70
run : python -u -m pyperformance.tests
71
+ continue-on-error : ${{ matrix.experimental }}
72
+ - name : Notify result for experimental tasks (Failure)
73
+ uses : marocchino/sticky-pull-request-comment@v2
74
+ if : ${{ steps.pyperformance.outcome != 'success' && matrix.experimental }}
75
+ with :
76
+ message : |
77
+ ❌: ${{ matrix.os }} - ${{ matrix.python }} has failed, but allowed as the experimental task.
78
+ - name : Notify result for experimental tasks (Success)
79
+ uses : marocchino/sticky-pull-request-comment@v2
80
+ if : ${{ steps.pyperformance.outcome == 'success' && matrix.experimental }}
81
+ with :
82
+ message : |
83
+ ✅: ${{ matrix.os }} - ${{ matrix.python }} has passed, now we can disable the experimental flag.
0 commit comments