Skip to content

Commit 9d38f17

Browse files
authored
refactor: enhance workflow names and descriptions for clarity (#32262)
1 parent c6cb1fa commit 9d38f17

19 files changed

+157
-159
lines changed

β€Ž.github/workflows/_compile_integration_test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: compile-integration-test
1+
name: 'πŸ”— Compile Integration Tests'
22

33
on:
44
workflow_call:
@@ -25,24 +25,24 @@ jobs:
2525
working-directory: ${{ inputs.working-directory }}
2626
runs-on: ubuntu-latest
2727
timeout-minutes: 20
28-
name: "uv run pytest -m compile tests/integration_tests #${{ inputs.python-version }}"
28+
name: 'Python ${{ inputs.python-version }}'
2929
steps:
3030
- uses: actions/checkout@v4
3131

32-
- name: Set up Python ${{ inputs.python-version }} + uv
32+
- name: '🐍 Set up Python ${{ inputs.python-version }} + UV'
3333
uses: "./.github/actions/uv_setup"
3434
with:
3535
python-version: ${{ inputs.python-version }}
3636

37-
- name: Install integration dependencies
37+
- name: 'πŸ“¦ Install Integration Dependencies'
3838
shell: bash
3939
run: uv sync --group test --group test_integration
4040

41-
- name: Check integration tests compile
41+
- name: 'πŸ”— Check Integration Tests Compile'
4242
shell: bash
4343
run: uv run pytest -m compile tests/integration_tests
4444

45-
- name: Ensure the tests did not create any additional files
45+
- name: '🧹 Verify Clean Working Directory'
4646
shell: bash
4747
run: |
4848
set -eu

β€Ž.github/workflows/_integration_test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Integration Tests
1+
name: 'πŸš€ Integration Tests'
22

33
on:
44
workflow_dispatch:
@@ -24,20 +24,20 @@ jobs:
2424
run:
2525
working-directory: ${{ inputs.working-directory }}
2626
runs-on: ubuntu-latest
27-
name: Python ${{ inputs.python-version }}
27+
name: 'πŸš€ Integration Tests (Python ${{ inputs.python-version }})'
2828
steps:
2929
- uses: actions/checkout@v4
3030

31-
- name: Set up Python ${{ inputs.python-version }} + uv
31+
- name: '🐍 Set up Python ${{ inputs.python-version }} + UV'
3232
uses: "./.github/actions/uv_setup"
3333
with:
3434
python-version: ${{ inputs.python-version }}
3535

36-
- name: Install dependencies
36+
- name: 'πŸ“¦ Install Integration Dependencies'
3737
shell: bash
3838
run: uv sync --group test --group test_integration
3939

40-
- name: Run integration tests
40+
- name: 'πŸš€ Run Integration Tests'
4141
shell: bash
4242
env:
4343
AI21_API_KEY: ${{ secrets.AI21_API_KEY }}

β€Ž.github/workflows/_lint.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
name: lint
1+
name: '🧹 Code Linting'
2+
# Runs code quality checks using ruff, mypy, and other linting tools
3+
# Checks both package code and test code for consistency
24

35
on:
46
workflow_call:
@@ -24,19 +26,21 @@ env:
2426
UV_FROZEN: "true"
2527

2628
jobs:
29+
# Linting job - runs quality checks on package and test code
2730
build:
28-
name: "make lint #${{ inputs.python-version }}"
31+
name: 'Python ${{ inputs.python-version }}'
2932
runs-on: ubuntu-latest
3033
timeout-minutes: 20
3134
steps:
32-
- uses: actions/checkout@v4
35+
- name: 'πŸ“‹ Checkout Code'
36+
uses: actions/checkout@v4
3337

34-
- name: Set up Python ${{ inputs.python-version }} + uv
38+
- name: '🐍 Set up Python ${{ inputs.python-version }} + UV'
3539
uses: "./.github/actions/uv_setup"
3640
with:
3741
python-version: ${{ inputs.python-version }}
3842

39-
- name: Install dependencies
43+
- name: 'πŸ“¦ Install Lint & Typing Dependencies'
4044
# Also installs dev/lint/test/typing dependencies, to ensure we have
4145
# type hints for as many of our libraries as possible.
4246
# This helps catch errors that require dependencies to be spotted, for example:
@@ -49,12 +53,12 @@ jobs:
4953
run: |
5054
uv sync --group lint --group typing
5155
52-
- name: Analysing the code with our lint
56+
- name: 'πŸ” Analyze Package Code with Linters'
5357
working-directory: ${{ inputs.working-directory }}
5458
run: |
5559
make lint_package
5660
57-
- name: Install unit test dependencies
61+
- name: 'πŸ“¦ Install Unit Test Dependencies'
5862
# Also installs dev/lint/test/typing dependencies, to ensure we have
5963
# type hints for as many of our libraries as possible.
6064
# This helps catch errors that require dependencies to be spotted, for example:
@@ -67,13 +71,13 @@ jobs:
6771
working-directory: ${{ inputs.working-directory }}
6872
run: |
6973
uv sync --inexact --group test
70-
- name: Install unit+integration test dependencies
74+
- name: 'πŸ“¦ Install Unit + Integration Test Dependencies'
7175
if: ${{ startsWith(inputs.working-directory, 'libs/partners/') }}
7276
working-directory: ${{ inputs.working-directory }}
7377
run: |
7478
uv sync --inexact --group test --group test_integration
7579
76-
- name: Analysing the code with our lint
80+
- name: 'πŸ” Analyze Test Code with Linters'
7781
working-directory: ${{ inputs.working-directory }}
7882
run: |
7983
make lint_tests

β€Ž.github/workflows/_release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: Release
2-
run-name: Release ${{ inputs.working-directory }} by @${{ github.actor }}
1+
name: 'πŸš€ Package Release'
2+
run-name: 'πŸš€ Release ${{ inputs.working-directory }} by @${{ github.actor }}'
33
on:
44
workflow_call:
55
inputs:
@@ -18,14 +18,16 @@ on:
1818
required: false
1919
type: boolean
2020
default: false
21-
description: "Release from a non-master branch (danger!)"
21+
description: "Release from a non-master branch (danger!) - Only use for hotfixes"
2222

2323
env:
2424
PYTHON_VERSION: "3.11"
2525
UV_FROZEN: "true"
2626
UV_NO_SYNC: "true"
2727

2828
jobs:
29+
# Build the distribution package and extract version info
30+
# Runs in isolated environment with minimal permissions for security
2931
build:
3032
if: github.ref == 'refs/heads/master' || inputs.dangerous-nonmaster-release
3133
environment: Scheduled testing

β€Ž.github/workflows/_test.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
name: test
1+
name: 'πŸ§ͺ Unit Testing'
2+
# Runs unit tests with both current and minimum supported dependency versions
3+
# to ensure compatibility across the supported range
24

35
on:
46
workflow_call:
@@ -20,31 +22,33 @@ env:
2022
UV_NO_SYNC: "true"
2123

2224
jobs:
25+
# Main test job - runs unit tests with current deps, then retests with minimum versions
2326
build:
2427
defaults:
2528
run:
2629
working-directory: ${{ inputs.working-directory }}
2730
runs-on: ubuntu-latest
2831
timeout-minutes: 20
29-
name: "make test #${{ inputs.python-version }}"
32+
name: 'Python ${{ inputs.python-version }}'
3033
steps:
31-
- uses: actions/checkout@v4
34+
- name: 'πŸ“‹ Checkout Code'
35+
uses: actions/checkout@v4
3236

33-
- name: Set up Python ${{ inputs.python-version }} + uv
37+
- name: '🐍 Set up Python ${{ inputs.python-version }} + UV'
3438
uses: "./.github/actions/uv_setup"
3539
id: setup-python
3640
with:
3741
python-version: ${{ inputs.python-version }}
38-
- name: Install dependencies
42+
- name: 'πŸ“¦ Install Test Dependencies'
3943
shell: bash
4044
run: uv sync --group test --dev
4145

42-
- name: Run core tests
46+
- name: 'πŸ§ͺ Run Core Unit Tests'
4347
shell: bash
4448
run: |
4549
make test
4650
47-
- name: Get minimum versions
51+
- name: 'πŸ” Calculate Minimum Dependency Versions'
4852
working-directory: ${{ inputs.working-directory }}
4953
id: min-version
5054
shell: bash
@@ -55,7 +59,7 @@ jobs:
5559
echo "min-versions=$min_versions" >> "$GITHUB_OUTPUT"
5660
echo "min-versions=$min_versions"
5761
58-
- name: Run unit tests with minimum dependency versions
62+
- name: 'πŸ§ͺ Run Tests with Minimum Dependencies'
5963
if: ${{ steps.min-version.outputs.min-versions != '' }}
6064
env:
6165
MIN_VERSIONS: ${{ steps.min-version.outputs.min-versions }}
@@ -64,7 +68,7 @@ jobs:
6468
make tests
6569
working-directory: ${{ inputs.working-directory }}
6670

67-
- name: Ensure the tests did not create any additional files
71+
- name: '🧹 Verify Clean Working Directory'
6872
shell: bash
6973
run: |
7074
set -eu

β€Ž.github/workflows/_test_doc_imports.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: test_doc_imports
1+
name: 'πŸ“‘ Documentation Import Testing'
22

33
on:
44
workflow_call:
@@ -18,29 +18,30 @@ jobs:
1818
build:
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 20
21-
name: "check doc imports #${{ inputs.python-version }}"
21+
name: 'πŸ” Check Doc Imports (Python ${{ inputs.python-version }})'
2222
steps:
23-
- uses: actions/checkout@v4
23+
- name: 'πŸ“‹ Checkout Code'
24+
uses: actions/checkout@v4
2425

25-
- name: Set up Python ${{ inputs.python-version }} + uv
26+
- name: '🐍 Set up Python ${{ inputs.python-version }} + UV'
2627
uses: "./.github/actions/uv_setup"
2728
with:
2829
python-version: ${{ inputs.python-version }}
2930

30-
- name: Install dependencies
31+
- name: 'πŸ“¦ Install Test Dependencies'
3132
shell: bash
3233
run: uv sync --group test
3334

34-
- name: Install langchain editable
35+
- name: 'πŸ“¦ Install LangChain in Editable Mode'
3536
run: |
3637
VIRTUAL_ENV=.venv uv pip install langchain-experimental langchain-community -e libs/core libs/langchain
3738
38-
- name: Check doc imports
39+
- name: 'πŸ” Validate Documentation Import Statements'
3940
shell: bash
4041
run: |
4142
uv run python docs/scripts/check_imports.py
4243
43-
- name: Ensure the test did not create any additional files
44+
- name: '🧹 Verify Clean Working Directory'
4445
shell: bash
4546
run: |
4647
set -eu

β€Ž.github/workflows/_test_pydantic.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: test pydantic intermediate versions
1+
name: '🐍 Pydantic Version Testing'
22

33
on:
44
workflow_call:
@@ -31,29 +31,30 @@ jobs:
3131
working-directory: ${{ inputs.working-directory }}
3232
runs-on: ubuntu-latest
3333
timeout-minutes: 20
34-
name: "make test # pydantic: ~=${{ inputs.pydantic-version }}, python: ${{ inputs.python-version }}, "
34+
name: 'Pydantic ~=${{ inputs.pydantic-version }}'
3535
steps:
36-
- uses: actions/checkout@v4
36+
- name: 'πŸ“‹ Checkout Code'
37+
uses: actions/checkout@v4
3738

38-
- name: Set up Python ${{ inputs.python-version }} + uv
39+
- name: '🐍 Set up Python ${{ inputs.python-version }} + UV'
3940
uses: "./.github/actions/uv_setup"
4041
with:
4142
python-version: ${{ inputs.python-version }}
4243

43-
- name: Install dependencies
44+
- name: 'πŸ“¦ Install Test Dependencies'
4445
shell: bash
4546
run: uv sync --group test
4647

47-
- name: Overwrite pydantic version
48+
- name: 'πŸ”„ Install Specific Pydantic Version'
4849
shell: bash
4950
run: VIRTUAL_ENV=.venv uv pip install pydantic~=${{ inputs.pydantic-version }}
5051

51-
- name: Run core tests
52+
- name: 'πŸ§ͺ Run Core Tests'
5253
shell: bash
5354
run: |
5455
make test
5556
56-
- name: Ensure the tests did not create any additional files
57+
- name: '🧹 Verify Clean Working Directory'
5758
shell: bash
5859
run: |
5960
set -eu

β€Ž.github/workflows/_test_release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: test-release
1+
name: 'πŸ§ͺ Test Release Package'
22

33
on:
44
workflow_call:
@@ -29,7 +29,7 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@v4
3131

32-
- name: Set up Python + uv
32+
- name: '🐍 Set up Python + UV'
3333
uses: "./.github/actions/uv_setup"
3434
with:
3535
python-version: ${{ env.PYTHON_VERSION }}
@@ -45,17 +45,17 @@ jobs:
4545
# > It is strongly advised to separate jobs for building [...]
4646
# > from the publish job.
4747
# https://github.com/pypa/gh-action-pypi-publish#non-goals
48-
- name: Build project for distribution
48+
- name: 'πŸ“¦ Build Project for Distribution'
4949
run: uv build
5050
working-directory: ${{ inputs.working-directory }}
5151

52-
- name: Upload build
52+
- name: '⬆️ Upload Build Artifacts'
5353
uses: actions/upload-artifact@v4
5454
with:
5555
name: test-dist
5656
path: ${{ inputs.working-directory }}/dist/
5757

58-
- name: Check Version
58+
- name: 'πŸ” Extract Version Information'
5959
id: check-version
6060
shell: python
6161
working-directory: ${{ inputs.working-directory }}

0 commit comments

Comments
Β (0)