Skip to content

Commit 5bbbd0b

Browse files
committed
Fix tests
1 parent 7bebb5c commit 5bbbd0b

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,16 @@ jobs:
4747
- name: Install uv
4848
uses: astral-sh/setup-uv@v7
4949
with:
50+
activate-environment: "true"
5051
enable-cache: "false"
5152

5253
- name: Install dependencies
5354
run: |
5455
uv sync --group test
5556
56-
- name: Git info
57-
run: |
58-
git version
59-
git tag -l --sort=-creatordate --merged
60-
6157
- name: Run tests
6258
run: |
6359
mkdir reports/
64-
source .venv/bin/activate
6560
coverage run -m pytest -n auto -m ${{ matrix.mark }}
6661
6762
- name: Upload coverage results

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ setuptools_git_versioning = "setuptools_git_versioning:parse_config"
5252
[project.entry-points."setuptools.finalize_distribution_options"]
5353
setuptools_git_versioning = "setuptools_git_versioning:infer_version"
5454

55+
[project.entry-points."console_scripts"]
56+
setuptools-git-versioning = "setuptools_git_versioning:__main__"
57+
5558
[tool.setuptools-git-versioning]
5659
enabled = true
5760
dev_template = "{tag}.post{ccount}"

tests/lib/util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def execute(cwd: str | os.PathLike, *cmd: str, **kwargs) -> str:
4040
if pythonpath:
4141
kwargs["env"]["PYTHONPATH"] = pythonpath
4242

43-
print(os.environ)
4443
with subprocess.Popen(cmd, cwd=cwd, stdout=subprocess.PIPE, universal_newlines=True, **kwargs) as process:
4544
stdout, stderr = process.communicate()
4645
if process.returncode != 0:

0 commit comments

Comments
 (0)