Skip to content

Commit

Permalink
Check version without installing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fk3 committed Jun 21, 2023
1 parent c00b90a commit 41e6b13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/check_version_uniqueness.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"""Make sure that the version number has been increased and does not exist on PyPI yet."""

import importlib.metadata
import subprocess

import pysweepme

pysweepme_version = pysweepme.__version__
pysweepme_version = importlib.metadata.version("pysweepme")

not_found = False

Expand All @@ -29,4 +28,5 @@
f"Version {pysweepme_version} seems to be published already. "
f"Did you forget to increase the version number in pysweepme/__init__.py?"
)
print(f"::error::{exc_msg}") # noqa: T201
raise ValueError(exc_msg)
2 changes: 1 addition & 1 deletion .github/workflows/check_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install environment
run: |
python -m pip install --upgrade pip
pip install .
pip install --no-deps .
- name: Run version check
run: |
python .github/check_version_uniqueness.py
Expand Down

0 comments on commit 41e6b13

Please sign in to comment.