Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
max-parallel: 4
fail-fast: false
Expand All @@ -18,22 +18,33 @@ jobs:
- "3.11"
- "3.12"
- "3.13"
include:
- os: "ubuntu-latest"
- os: "ubuntu-20.04"
python-version: "3.6"

container: ${{ contains(matrix.python-version, '3.6') && 'registry.opensuse.org/home/okurz/container/leap15/containers/leap:openQA-python-client-ci' || '' }}
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
if: matrix.python-version != '3.6'
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Adjust 3.6 image
if: matrix.python-version == '3.6'
run: |
ln -s /usr/bin/python3 /usr/local/bin/python
whoami
ls -l /
ls -la /github/home/
mkdir -p /github/home/.cache/
ls -la /github/home/
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
run: |
pwd
ls -la
tox list
tox config
tox
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
envlist = py36,py38,py39,py310,py311,py312,py313,ci
skip_missing_interpreters = true
isolated_build = true
# https://tox.wiki/en/4.11.3/faq.html#testing-end-of-life-python-versions
# for python3.6
requires = virtualenv<20.22.0


[gh-actions]
python =
Expand Down
Loading