tests: make tox tests working

This commit is contained in:
Pavel Raiskup 2024-10-03 08:39:17 +02:00 committed by Jakub Kadlčík
parent f39b3d620d
commit 3ec27836f3
2 changed files with 16 additions and 1 deletions

View file

@ -18,12 +18,16 @@ jobs:
uses: fedora-python/tox-github-action@main uses: fedora-python/tox-github-action@main
with: with:
tox_env: ${{ matrix.tox_env }} tox_env: ${{ matrix.tox_env }}
dnf_install: python3-rpm
strategy: strategy:
matrix: matrix:
tox_env: tox_env:
# sync with /tox.ini
- py36
- py37 - py37
- py310
- py311 - py311
- py312
- py313
# Use GitHub's Linux Docker host # Use GitHub's Linux Docker host
runs-on: ubuntu-latest runs-on: ubuntu-latest

11
tox.ini
View file

@ -8,3 +8,14 @@ ignore=E124,E125,E127,E128,E501
# Exclude the build directory that distutils creates # Exclude the build directory that distutils creates
exclude=build/* exclude=build/*
max-line-length=120 max-line-length=120
[tox]
# sync with /.github/workflows/fedora-tox.yml
envlist = py{36,37,311,312,313}
skipsdist = True
[testenv]
deps = nose
commands = nosetests {posargs}