Skip to content

Commit 1de274f

Browse files
authored
Merge pull request #120 from NREL-Distribution-Suites/al/badges
Update version.py
2 parents a31d1f2 + cd70316 commit 1de274f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/pull_request_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.11"]
10+
python-version: ["3.12", "3.13"]
1111

1212
steps:
1313
- uses: actions/checkout@v4

src/gdm/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import platform
44
import sys
55

6-
VERSION = "2.1.5"
6+
VERSION = "2.1.5+post.1"
77
SUPPORTED_VERSIONS = [VERSION]
88

99

tests/test_version_management.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
def test_version_control(tmp_path, distribution_system_with_single_timeseries):
99
system: DistributionSystem = distribution_system_with_single_timeseries
10-
assert system.data_format_version == gdm.version.VERSION
10+
assert system.data_format_version.split("+")[0].split("-")[0] == gdm.version.VERSION.split("+")[0].split("-")[0]
1111
system.to_json(tmp_path / "model.json")
1212
with open(tmp_path / "model.json", "r") as f:
1313
data = json.load(f)
@@ -17,4 +17,4 @@ def test_version_control(tmp_path, distribution_system_with_single_timeseries):
1717
json.dump(data, file, indent=4)
1818

1919
new_system = DistributionSystem.from_json(tmp_path / "model.json")
20-
assert new_system.data_format_version == gdm.version.VERSION
20+
assert new_system.data_format_version.split("+")[0].split("-")[0] == gdm.version.VERSION.split("+")[0].split("-")[0]

0 commit comments

Comments
 (0)