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,12 +47,17 @@ 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 }}
5157 run : |
5258 docker run --rm --platform linux/${{ matrix.arch }} -v $PWD/example_project:/src -w /src -e TOXENV fedorapython/fedora-python-tox:${{ matrix.arch }}
5359 - name : Test remote project
60+ if : ${{ matrix.toxenv != 'py36,pypy27' }}
5461 env :
5562 TOXENV : ${{ matrix.toxenv }}
5663 run : |
@@ -61,22 +68,24 @@ jobs:
6168 run : |
6269 docker run --rm --platform linux/${{ matrix.arch }} -v $PWD/example_project:/src -w /src -e TOXENV -e TOX_PARAMS="-p auto" fedorapython/fedora-python-tox:${{ matrix.arch }}
6370 - name : Test dnf install and wheel build
71+ if : ${{ matrix.toxenv != 'py36,pypy27' }}
6472 env :
6573 TOXENV : ${{ matrix.toxenv }}
6674 run : |
6775 docker run --rm --platform linux/${{ matrix.arch }} -e DNF_INSTALL="libffi-devel 'pkgconfig(libgit2) >= 1.9' /usr/bin/cowsay" fedorapython/fedora-python-tox:${{ matrix.arch }} sh -c "/run_tests.sh; pip install -I --no-deps --compile --no-binary :all: cffi pygit2~=1.17.0 && cowsay DONE"
6876 - name : Test external project with WORKDIR
77+ if : ${{ matrix.toxenv != 'py36,pypy27' }}
6978 run : |
7079 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 }}
7180 - name : Login to DockerHub
7281 uses : docker/login-action@v1
73- if : github.event_name == 'push' || github.event_name == 'schedule'
82+ if : ${{ matrix.toxenv != 'py36,pypy27' && ( github.event_name == 'push' || github.event_name == 'schedule') }}
7483 with :
7584 username : ${{ secrets.DOCKERHUB_USERNAME }}
7685 password : ${{ secrets.DOCKERHUB_TOKEN }}
7786 - name : Push to Dockerhub
7887 uses : docker/build-push-action@v2
79- if : github.event_name == 'push' || github.event_name == 'schedule'
88+ if : ${{ matrix.toxenv != 'py36,pypy27' && ( github.event_name == 'push' || github.event_name == 'schedule') }}
8089 with :
8190 context : .
8291 platforms : linux/${{ matrix.arch }}
0 commit comments