Skip to content

Commit db5b63b

Browse files
authored
update workflow to use python 3.10, add rel_1_4 branch to test (#194)
1 parent db97a00 commit db5b63b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/run-test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
strategy:
1616
matrix:
1717
python-version:
18-
- "3.9"
18+
- "3.10"
1919
sqlalchemy:
2020
- sqla_release
21+
- sqla_rel_1_4
2122
- sqla_main
2223

2324
fail-fast: false

.github/workflows/scripts/find_version.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from urllib import request
44

55

6-
def go(argv):
6+
def go(argv: list[str]):
77
if "sqla_release" in argv:
88
result = request.urlopen(
99
"https://pypi.org/pypi/SQLAlchemy/json", timeout=10
@@ -13,7 +13,13 @@ def go(argv):
1313
version = parsed["info"]["version"]
1414
print(f"rel_{version}".replace(".", "_"))
1515
else:
16-
print("main")
16+
for part in argv:
17+
if part.startswith("sqla_"):
18+
part = part.partition("sqla_")[-1]
19+
print(part)
20+
break
21+
else:
22+
print("main")
1723

1824

1925
if __name__ == "__main__":

0 commit comments

Comments
 (0)