Skip to content

Commit b646264

Browse files
committed
CI: Run py36,pypy27 toxenvs specially
Fixes: #88
1 parent 8934e48 commit b646264

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build-and-push.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
matrix:
2323
include:
2424
- arch: amd64
25-
toxenv: py36,py39,py310,py311,py312,py313,py314,py315,py314t,py315t,pypy,pypy39,pypy310,pypy311
25+
toxenv: py39,py310,py311,py312,py313,py314,py315,py314t,py315t,pypy39,pypy310,pypy311
26+
- arch: amd64
27+
toxenv: py36,pypy27
2628
- arch: arm64
2729
toxenv: py312
2830
- arch: ppc64le
@@ -45,6 +47,10 @@ jobs:
4547
tags: |
4648
fedorapython/fedora-python-tox:${{ matrix.arch }}
4749
fedorapython/fedora-python-tox:${{ matrix.arch }}-f${{ env.FEDORA_VERSION }}
50+
- name: Setup tox for end-of-life Python versions
51+
if: ${{ matrix.toxenv }} == 'py36,pypy27'
52+
run: |
53+
sed -i '/\[tox\]/a requires = virtualenv<20.22.0' example_project/tox.ini
4854
- name: Test local project
4955
env:
5056
TOXENV: ${{ matrix.toxenv }}
@@ -70,13 +76,13 @@ jobs:
7076
docker run --rm --platform linux/${{ matrix.arch }} -e TOXENV=py3 -e GIT_URL=https://github.com/frenzymadness/nflxprofile.git -e WORKDIR=python fedorapython/fedora-python-tox:${{ matrix.arch }}
7177
- name: Login to DockerHub
7278
uses: docker/login-action@v1
73-
if: github.event_name == 'push' || github.event_name == 'schedule'
79+
if: (github.event_name == 'push' || github.event_name == 'schedule') && ${{ matrix.toxenv }} != 'py36,pypy27'
7480
with:
7581
username: ${{ secrets.DOCKERHUB_USERNAME }}
7682
password: ${{ secrets.DOCKERHUB_TOKEN }}
7783
- name: Push to Dockerhub
7884
uses: docker/build-push-action@v2
79-
if: github.event_name == 'push' || github.event_name == 'schedule'
85+
if: (github.event_name == 'push' || github.event_name == 'schedule') && ${{ matrix.toxenv }} != 'py36,pypy27'
8086
with:
8187
context: .
8288
platforms: linux/${{ matrix.arch }}

0 commit comments

Comments
 (0)