Skip to content

Commit 1df2b3f

Browse files
committed
github: Show dependencies in sorted order
1 parent 75d7663 commit 1df2b3f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/run_unit_tests.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ jobs:
3838
run: poetry install -v
3939
- name: Display installed dependency versions
4040
run: |
41+
# Use importlib instead of assuming that the project venv contains an up-to-date pip.
4142
import importlib.metadata
42-
for dist in importlib.metadata.Distribution.discover():
43+
for dist in sorted(importlib.metadata.Distribution.discover(), key=lambda d: d.name):
4344
print(f"{dist.name}: {dist.version}")
4445
shell: poetry run python {0}
4546
- name: Run unit/acceptance/doc tests and code coverage

‎.github/workflows/run_unit_tests_oldest_deps.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ jobs:
4848
run: poetry install -v
4949
- name: Display installed dependency versions
5050
run: |
51+
# Use importlib instead of assuming that the project venv contains an up-to-date pip.
5152
import importlib.metadata
52-
for dist in importlib.metadata.Distribution.discover():
53+
for dist in sorted(importlib.metadata.Distribution.discover(), key=lambda d: d.name):
5354
print(f"{dist.name}: {dist.version}")
5455
shell: poetry run python {0}
5556
- name: Run unit tests and code coverage

0 commit comments

Comments
 (0)