@@ -48,11 +48,16 @@ jobs:
48
48
timeout-minutes : 2
49
49
50
50
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
56
61
env :
57
62
CONTENTS : |
58
63
[build-system]
@@ -65,15 +70,19 @@ jobs:
65
70
name = "test-package"
66
71
version = "0.1"
67
72
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
70
77
env :
71
78
TWINE_USERNAME : ${{ env.devpi-username }}
72
79
TWINE_PASSWORD : ${{ env.devpi-password }}
73
- - uses : actions/checkout@v3
80
+ - name : Check out the action locally
81
+ uses : actions/checkout@v3
74
82
with :
75
83
path : test
76
- - uses : ./test
84
+ - name : ✅ Smoke-test the locally checked out action
85
+ uses : ./test
77
86
with :
78
87
user : ${{ env.devpi-username }}
79
88
password : ${{ env.devpi-password }}
0 commit comments