• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

containerbuildsystem / cachi2 / 6492816887
97%

Build:
DEFAULT BRANCH: main
Ran 12 Oct 2023 07:52AM UTC
Jobs 3
Files 32
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Oct 2023 07:50AM UTC coverage: 96.121%. Remained the same
6492816887

push

github

chmeliik
tox.ini: Fix Python environment factors

Tox's default nomenclature for referring to Python test environments
(without further config options) follows the 'py3[[:digit:]]*'
expression, in other words if one wants to run tests against Python
3.9, they'd put 'py39' in the 'envlist' setting, similarly for py310,
py311, etc.

We didn't follow the rules and so we always executed tox against the
Python version that was originally used to create the development
virtual environment. This is proved by the tox's output which reports:

    python3.10: install_deps> python -I -m pip install -r
        requirements-extras.txt
    ...
    ===========================================================
    platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0

despite having been instructed (though in an incorrect way) to run a
Python 3.10 environment. This behaviour also silently ignored cases
where the given Python version wasn't even installed on the system, so
the platform Python which was used to create the virtual environment
was always used.

After this patch, this is what the execution reports:

    py310: install_deps> python -I -m pip install -r
        requirements-extras.txt
    .pkg-cpython310: install_requires> python -I -m pip install
        setuptools setuptools-scm
    ...
    ============================================================
    platform linux -- Python 3.10.13, pytest-7.4.2, pluggy-1.3.0

AND

    py310: skipped because could not find python interpreter with
        spec(s): py310

if python3.10 isn't installed on the host system.

While at it, use Bash-like brace expansion to cover a range of minor
Python 3 versions instead of explicitly enumerating each one of them.

Signed-off-by: Erik Skultety <eskultet@redhat.com>

2726 of 2836 relevant lines covered (96.12%)

2.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python-3.11 - 6492816887.1 12 Oct 2023 07:53AM UTC 0
96.1
2 python-3.10 - 6492816887.2 12 Oct 2023 07:53AM UTC 0
96.12
3 python-3.9 - 6492816887.3 12 Oct 2023 07:53AM UTC 0
96.08
Source Files on build 6492816887
Detailed source file information is not available for this build.
  • Back to Repo
  • 80aecd82 on github
  • Prev Build on main (#6492808640)
  • Next Build on main (#6508002352)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc