@@ -26,61 +26,59 @@ jobs:
2626 toxpython : ' python3.11'
2727 tox_env : ' docs'
2828 os : ' ubuntu-latest'
29-
30- # FIXME TEMP
31- # - name : 'py38 (ubuntu) '
32- # python : '3.8 '
33- # toxpython : 'python3.8 '
34- # python_arch : 'x64 '
35- # tox_env: 'py38'
36- # os : 'ubuntu-latest '
37- # - name : 'py39 (ubuntu) '
38- # python : '3 .9'
39- # toxpython : 'python3.9 '
40- # python_arch : 'x64 '
41- # tox_env : 'py39 '
42- # os: 'ubuntu-latest'
43- # - name: 'py310 (ubuntu)'
44- # python: '3.10'
45- # toxpython: 'python3.10'
46- # python_arch: 'x64'
47- # tox_env: 'py310'
48- # os: 'ubuntu-latest'
49-
29+ - name : ' py38 (ubuntu) '
30+ python : ' 3.8 '
31+ toxpython : ' python3.8 '
32+ python_arch : ' x64 '
33+ tox_env : ' py38 '
34+ os : ' ubuntu-latest '
35+ main_only : true
36+ - name : ' py39 ( ubuntu) '
37+ python : ' 3.9 '
38+ toxpython : ' python3 .9'
39+ python_arch : ' x64 '
40+ tox_env : ' py39 '
41+ os : ' ubuntu-latest '
42+ main_only : true
43+ - name : ' py310 (ubuntu)'
44+ python : ' 3.10'
45+ toxpython : ' python3.10'
46+ python_arch : ' x64'
47+ tox_env : ' py310'
48+ os : ' ubuntu-latest'
49+ main_only : true
5050# - name: 'py310 (windows)'
5151# python: '3.10'
5252# toxpython: 'python3.10'
5353# python_arch: 'x64'
5454# tox_env: 'py310'
5555# os: 'windows-latest'
56-
57- # FIXME TEMP
58- # - name: 'py311 (ubuntu)'
59- # python: '3.11'
60- # toxpython: 'python3.11'
61- # python_arch: 'x64'
62- # tox_env: 'py311'
63- # os: 'ubuntu-latest'
64- # - name: 'py311 (macos)'
65- # python: '3.11'
66- # toxpython: 'python3.11'
67- # python_arch: 'x64'
68- # tox_env: 'py311'
69- # os: 'macos-latest'
70- # - name: 'py311 (windows)'
71- # python: '3.11'
72- # toxpython: 'python3.11'
73- # python_arch: 'x64'
74- # tox_env: 'py311'
75- # os: 'windows-latest'
76-
56+ - name : ' py311 (ubuntu)'
57+ python : ' 3.11'
58+ toxpython : ' python3.11'
59+ python_arch : ' x64'
60+ tox_env : ' py311'
61+ os : ' ubuntu-latest'
62+ - name : ' py311 (macos)'
63+ python : ' 3.11'
64+ toxpython : ' python3.11'
65+ python_arch : ' x64'
66+ tox_env : ' py311'
67+ os : ' macos-latest'
68+ main_only : true
69+ - name : ' py311 (windows)'
70+ python : ' 3.11'
71+ toxpython : ' python3.11'
72+ python_arch : ' x64'
73+ tox_env : ' py311'
74+ os : ' windows-latest'
75+ main_only : true
7776 - name : ' py312 (ubuntu)'
7877 python : ' 3.12'
7978 toxpython : ' python3.12'
8079 python_arch : ' x64'
8180 tox_env : ' py312'
8281 os : ' ubuntu-latest'
83-
8482# - name: 'pypy38 (ubuntu)'
8583# python: 'pypy-3.8'
8684# toxpython: 'pypy3.8'
@@ -107,14 +105,22 @@ jobs:
107105# os: 'macos-latest'
108106
109107 steps :
110- - uses : actions/checkout@v4
108+ - name : ' [skip check]'
109+ if : (matrix.main_only == true) && (github.ref != 'refs/heads/main')
110+ run : |
111+ echo "Job '${{ matrix.name }}' is marked as 'main_only'."
112+ echo "Skipping this job because we are not on 'main' branch."
113+ - if : (matrix.main_only != true) || (github.ref == 'refs/heads/main')
114+ uses : actions/checkout@v4
111115 with :
112116 fetch-depth : 0
113117 - uses : actions/setup-python@v5
118+ if : (matrix.main_only != true) || (github.ref == 'refs/heads/main')
114119 with :
115120 python-version : ${{ matrix.python }}
116121 architecture : ${{ matrix.python_arch }}
117122 - name : install dependencies
123+ if : (matrix.main_only != true) || (github.ref == 'refs/heads/main')
118124 run : |
119125 python -mpip install --upgrade pip
120126 python -mpip install --progress-bar=off -r ci/requirements.txt
@@ -123,6 +129,7 @@ jobs:
123129 tox --version
124130 pip list --format=freeze
125131 - name : test
132+ if : (matrix.main_only != true) || (github.ref == 'refs/heads/main')
126133 env :
127134 TOXPYTHON : ' ${{ matrix.toxpython }}'
128135 run : >
0 commit comments