Skip to content

Commit aae9d2f

Browse files
fix: Install Python dependencies in OCI publish workflow (#551)
1 parent e87a949 commit aae9d2f

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

.github/workflows/oci-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
with:
1717
python-version: '3.x'
1818

19+
- name: Install deps
20+
run: make requirements
21+
1922
- name: Set up QEMU
2023
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # [email protected]
2124

version

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,12 @@ from packaging.version import parse
1010
ENV_LINODE_CLI_VERSION = "LINODE_CLI_VERSION"
1111

1212

13-
def get_version_env():
14-
return os.getenv(ENV_LINODE_CLI_VERSION)
15-
16-
17-
def get_version(ref="HEAD"):
13+
def get_version():
1814
# We want to override the version if an environment variable is specified.
1915
# This is useful for certain release and testing pipelines.
20-
version_str = get_version_env() or "0.0.0"
21-
22-
# Strip the `v` prefix if specified
23-
if version_str.startswith("v"):
24-
version_str = version_str[1:]
16+
version_str = os.getenv(ENV_LINODE_CLI_VERSION) or "0.0.0"
2517

2618
return parse(version_str).release
2719

2820

29-
major, minor, patch = get_version()
30-
print("{}.{}.{}".format(major, minor, patch))
21+
print("{}.{}.{}".format(*get_version()))

0 commit comments

Comments
 (0)