Skip to content

Conversation

@bernhardkaindl
Copy link
Contributor

@bernhardkaindl bernhardkaindl commented Nov 15, 2024

@chunjiez, The documentation to run pytest is in the commit to CONTRIBUTING.md:

Development setup

Create a virtual environment with the test dependencies

python -m venv .venv
. .venv/bin/activate
pip install pip-tools==7.3.0
pip-compile --extra=test,mypy,pyright,pytype,tox -o - pyproject.toml | pip install -r /dev/stdin

Commits in this PR:

  • Use Python 3.11, 3.12 and 3.13 for GitHub CI and for tox (can be used to run CI locally)
  • Update CONTRIBUTING.md: Add doc on how to set up a venv for pytest, add alternative using pipx
  • tests/test_logger.py: Use pyfakefs: don't create a file in the host
  • .github/workflows/main.yml: Cleanup checks using Python 2.7/3.8 (Have not run since November 2024)

@coveralls
Copy link

coveralls commented Nov 15, 2024

Pull Request Test Coverage Report for Build 11862180821

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 12 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.009%) to 83.661%

Files with Coverage Reduction New Missed Lines %
xcp/accessor.py 1 89.1%
xcp/xmlunwrap.py 2 92.31%
xcp/cpiofile.py 3 75.26%
xcp/compat.py 6 78.57%
Totals Coverage Status
Change from base Build 9109272969: -0.009%
Covered Lines: 2806
Relevant Lines: 3354

💛 - Coveralls

@bernhardkaindl bernhardkaindl force-pushed the github-ci-use-newer-python-versions branch from fc28eb1 to 117df98 Compare August 15, 2025 11:29
@bernhardkaindl bernhardkaindl changed the title CI PR #6: GitHub CI/tox: Update CI to use Python 3.11, 3.12 and 3.13 CI-fixes PR #2: tox: Update CI to use Python 3.11, 3.12 and 3.13 Aug 15, 2025
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
@bernhardkaindl bernhardkaindl force-pushed the github-ci-use-newer-python-versions branch from 117df98 to 0ac581b Compare August 15, 2025 12:13
@bernhardkaindl bernhardkaindl changed the title CI-fixes PR #2: tox: Update CI to use Python 3.11, 3.12 and 3.13 CI-fixes PR #2: Use Python 3.11/3.12/3.13 and document pytest venv setup Aug 15, 2025
@bernhardkaindl bernhardkaindl changed the title CI-fixes PR #2: Use Python 3.11/3.12/3.13 and document pytest venv setup CI-fixes PR #2: Use Python 3.11,12,13 & document pytest venv setup Aug 15, 2025
@bernhardkaindl
Copy link
Contributor Author

Merged with #149

@bernhardkaindl bernhardkaindl deleted the github-ci-use-newer-python-versions branch September 26, 2025 07:59
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.

2 participants