Skip to content
Merged
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
16 changes: 13 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ name: 'Build and Test'
on: [push, pull_request, workflow_dispatch]

env:
COVERAGE_CORE: sysmon
FORCE_COLOR: 1
PIP_DISABLE_PIP_VERSION_CHECK: true
PIP_NO_COLOR: true
PIP_NO_INPUT: true
PIP_PROGRESS_BAR: off
PIP_REQUIRE_VIRTUALENV: false
Expand Down Expand Up @@ -38,13 +39,22 @@ jobs:
run: python -m pip install pymsbuild

- name: 'Install test runner'
run: python -m pip install pytest
run: python -m pip install pytest pytest-cov

- name: 'Build test module'
run: python -m pymsbuild -c _msbuild_test.py

- name: 'Run pre-test'
run: python -m pytest -vv
shell: bash
run: |
python -m pytest -vv \
--cov src \
--cov tests \
--cov-report term \
--cov-report xml

- name: 'Upload coverage'
uses: codecov/codecov-action@v5

- name: 'Build package'
run: python make.py
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Python Install Manager

[![Codecov](https://codecov.io/gh/python/pymanager/graph/badge.svg)](https://codecov.io/gh/python/pymanager)

This is the source code for the Python Install Manager app.

For information about how to use the Python install manager,
Expand Down
14 changes: 13 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
[build-system]
requires = ['pymsbuild>=1.1.1,<2.0']
build-backend = "pymsbuild"
build-backend = "pymsbuild"

[tool.coverage.run]
branch = true
disable_warnings = [
"no-sysmon",
]
omit = [
"src/manage/__main__.py",
]

[tool.coverage.html]
show_contexts = true
2 changes: 1 addition & 1 deletion tests/test_installs.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def test_get_install_to_run_with_platform(patched_installs):
assert i["executable"].match("python.exe")


def test_get_install_to_run_with_platform(patched_installs):
def test_get_install_to_run_with_platform_windowed(patched_installs):
i = installs.get_install_to_run("<none>", None, "1.0-32", windowed=True)
assert i["id"] == "PythonCore-1.0-32"
assert i["executable"].match("pythonw.exe")
Expand Down