mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-11-29 03:51:01 -05:00
🎨 Make the GHA steps named
This commit is contained in:
parent
efa83bf521
commit
1c4183fd91
1 changed files with 18 additions and 9 deletions
27
.github/workflows/self-smoke-test-action.yml
vendored
27
.github/workflows/self-smoke-test-action.yml
vendored
|
@ -48,11 +48,16 @@ jobs:
|
||||||
timeout-minutes: 2
|
timeout-minutes: 2
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: python3 -m pip install --upgrade pip build twine
|
- name: Install the packaging-related tools
|
||||||
- run: mkdir -p src/test_package
|
run: python3 -m pip install --upgrade pip build twine
|
||||||
- run: echo '__version__ = "0.1"' > src/test_package/__init__.py
|
- name: Create the stub package importable directory
|
||||||
- run: echo "# Test Package" > README.md
|
run: mkdir -p src/test_package
|
||||||
- run: echo "$CONTENTS" > pyproject.toml
|
- name: Populate the stub package `__init__.py`
|
||||||
|
run: echo '__version__ = "0.1"' > src/test_package/__init__.py
|
||||||
|
- name: Populate the stub package `README.md`
|
||||||
|
run: echo "# Test Package" > README.md
|
||||||
|
- name: Populate the stub package `pyproject.toml`
|
||||||
|
run: echo "$CONTENTS" > pyproject.toml
|
||||||
env:
|
env:
|
||||||
CONTENTS: |
|
CONTENTS: |
|
||||||
[build-system]
|
[build-system]
|
||||||
|
@ -65,15 +70,19 @@ jobs:
|
||||||
name = "test-package"
|
name = "test-package"
|
||||||
version = "0.1"
|
version = "0.1"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
- run: python3 -m build
|
- name: Build the stub package sdist and wheel distributions
|
||||||
- run: twine register dist/*.tar.gz
|
run: python3 -m build
|
||||||
|
- name: Register the stub package in devpi
|
||||||
|
run: twine register dist/*.tar.gz
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: ${{ env.devpi-username }}
|
TWINE_USERNAME: ${{ env.devpi-username }}
|
||||||
TWINE_PASSWORD: ${{ env.devpi-password }}
|
TWINE_PASSWORD: ${{ env.devpi-password }}
|
||||||
- uses: actions/checkout@v3
|
- name: Check out the action locally
|
||||||
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: test
|
path: test
|
||||||
- uses: ./test
|
- name: ✅ Smoke-test the locally checked out action
|
||||||
|
uses: ./test
|
||||||
with:
|
with:
|
||||||
user: ${{ env.devpi-username }}
|
user: ${{ env.devpi-username }}
|
||||||
password: ${{ env.devpi-password }}
|
password: ${{ env.devpi-password }}
|
||||||
|
|
Loading…
Reference in a new issue