@@ -32,21 +32,18 @@ jobs:
3232 python_arch : ' x64'
3333 tox_env : ' py38'
3434 os : ' ubuntu-latest'
35- main_only : true
3635 - name : ' py39 (ubuntu)'
3736 python : ' 3.9'
3837 toxpython : ' python3.9'
3938 python_arch : ' x64'
4039 tox_env : ' py39'
4140 os : ' ubuntu-latest'
42- main_only : true
4341 - name : ' py310 (ubuntu)'
4442 python : ' 3.10'
4543 toxpython : ' python3.10'
4644 python_arch : ' x64'
4745 tox_env : ' py310'
4846 os : ' ubuntu-latest'
49- main_only : true
5047# - name: 'py310 (windows)'
5148# python: '3.10'
5249# toxpython: 'python3.10'
@@ -65,14 +62,12 @@ jobs:
6562 python_arch : ' x64'
6663 tox_env : ' py311'
6764 os : ' macos-latest'
68- main_only : true
6965 - name : ' py311 (windows)'
7066 python : ' 3.11'
7167 toxpython : ' python3.11'
7268 python_arch : ' x64'
7369 tox_env : ' py311'
7470 os : ' windows-latest'
75- main_only : true
7671 - name : ' py312 (ubuntu)'
7772 python : ' 3.12'
7873 toxpython : ' python3.12'
@@ -105,22 +100,14 @@ jobs:
105100# os: 'macos-latest'
106101
107102 steps :
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
103+ - uses : actions/checkout@v4
115104 with :
116105 fetch-depth : 0
117106 - uses : actions/setup-python@v5
118- if : (matrix.main_only != true) || (github.ref == 'refs/heads/main')
119107 with :
120108 python-version : ${{ matrix.python }}
121109 architecture : ${{ matrix.python_arch }}
122110 - name : install dependencies
123- if : (matrix.main_only != true) || (github.ref == 'refs/heads/main')
124111 run : |
125112 python -mpip install --upgrade pip
126113 python -mpip install --progress-bar=off -r ci/requirements.txt
@@ -129,7 +116,6 @@ jobs:
129116 tox --version
130117 pip list --format=freeze
131118 - name : test
132- if : (matrix.main_only != true) || (github.ref == 'refs/heads/main')
133119 env :
134120 TOXPYTHON : ' ${{ matrix.toxpython }}'
135121 run : >
0 commit comments