Skip to content

tests: fix pipenv runner - #1132

Merged
jkowalleck merged 11 commits into
mainfrom
chore/fix-pipenv-tests
Oct 28, 2026
Merged

jkowalleck merged 11 commits into
mainfrom
chore/fix-pipenv-tests

Conversation

@jkowalleck

Copy link
Copy Markdown
Member

caused by python3.15 being used unexpectedly in some tests-setups

https://github.com/CycloneDX/cyclonedx-python/actions/runs/40679209546/job/122785290491

Using /opt/homebrew/bin/python33.15.0 to create virtualenv...
as in

ERROR: setUpClass (tests.integration.test_cli_environment.TestCliEnvironment)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/cyclonedx-python/cyclonedx-python/tests/integration/test_cli_environment.py", line 74, in setUpClass
    cls.__setup_testbeds_init()
  File "/Users/runner/work/cyclonedx-python/cyclonedx-python/tests/integration/test_cli_environment.py", line 68, in __setup_testbeds_init
    raise RuntimeError(
RuntimeError: failed init: /Users/runner/work/cyclonedx-python/cyclonedx-python/tests/_data/infiles/environment/via-pipenv/init.py
stdout: Installing dependencies from Pipfile.lock (250457)...

stderr: +  /Users/runner/Library/Caches/pypoetry/virtualenvs/cyclonedx-bom-oVUMgcd1-py3.11/bin/python -m pipenv install --deploy --no-site-packages
Creating a virtualenv for this project
Pipfile: 
/Users/runner/work/cyclonedx-python/cyclonedx-python/tests/_data/infiles/environ
ment/via-pipenv/Pipfile
Using /opt/homebrew/bin/python33.15.0 to create virtualenv...
created virtual environment CPython3.15.0.final.0-64-arm64 in 783ms
  creator 
CPython3macOsBrew(dest=/Users/runner/work/cyclonedx-python/cyclonedx-python/test
s/_data/infiles/environment/via-pipenv/.venv, clear=False, no_vcs_ignore=False, 
global=False)
  seeder FromAppData(download=False, pip=bundle, via=copy, 
app_data_dir=/Users/runner/Library/Caches/virtualenv)
    added seed packages: pip==26.0.1
  activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator
,PythonActivator

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck
jkowalleck requested a review from a team as a code owner October 28, 2026 11:56
@codacy-production

codacy-production Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Coverage ∅ diff coverage

Metric Results
Coverage variation Report missing for 87fc2861
Diff coverage ✅ ∅ diff coverage (80.00%)

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (87fc286) Report Missing Report Missing Report Missing
Head commit (a9b10f6) 1171 1136 97.01%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1132) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck

Copy link
Copy Markdown
Member Author

issue was, that pipenv just chose the system-wide python, instead of the currently used one.

@jkowalleck
jkowalleck merged commit 6b7184e into main Oct 28, 2026
39 checks passed
@jkowalleck
jkowalleck deleted the chore/fix-pipenv-tests branch October 28, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant