Skip to content

Commit 1c4183f

Browse files
committed
🎨 Make the GHA steps named
1 parent efa83bf commit 1c4183f

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

.github/workflows/self-smoke-test-action.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,16 @@ jobs:
4848
timeout-minutes: 2
4949

5050
steps:
51-
- run: python3 -m pip install --upgrade pip build twine
52-
- run: mkdir -p src/test_package
53-
- run: echo '__version__ = "0.1"' > src/test_package/__init__.py
54-
- run: echo "# Test Package" > README.md
55-
- run: echo "$CONTENTS" > pyproject.toml
51+
- name: Install the packaging-related tools
52+
run: python3 -m pip install --upgrade pip build twine
53+
- name: Create the stub package importable directory
54+
run: mkdir -p src/test_package
55+
- name: Populate the stub package `__init__.py`
56+
run: echo '__version__ = "0.1"' > src/test_package/__init__.py
57+
- name: Populate the stub package `README.md`
58+
run: echo "# Test Package" > README.md
59+
- name: Populate the stub package `pyproject.toml`
60+
run: echo "$CONTENTS" > pyproject.toml
5661
env:
5762
CONTENTS: |
5863
[build-system]
@@ -65,15 +70,19 @@ jobs:
6570
name = "test-package"
6671
version = "0.1"
6772
readme = "README.md"
68-
- run: python3 -m build
69-
- run: twine register dist/*.tar.gz
73+
- name: Build the stub package sdist and wheel distributions
74+
run: python3 -m build
75+
- name: Register the stub package in devpi
76+
run: twine register dist/*.tar.gz
7077
env:
7178
TWINE_USERNAME: ${{ env.devpi-username }}
7279
TWINE_PASSWORD: ${{ env.devpi-password }}
73-
- uses: actions/checkout@v3
80+
- name: Check out the action locally
81+
uses: actions/checkout@v3
7482
with:
7583
path: test
76-
- uses: ./test
84+
- name: ✅ Smoke-test the locally checked out action
85+
uses: ./test
7786
with:
7887
user: ${{ env.devpi-username }}
7988
password: ${{ env.devpi-password }}

0 commit comments

Comments
 (0)