mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-11-09 02:13:33 -05:00
Adjust the GHA workflow per yamllint rules
This commit is contained in:
parent
a737e68aed
commit
cde4774fb1
1 changed files with 38 additions and 31 deletions
13
.github/workflows/test-upload.yml
vendored
13
.github/workflows/test-upload.yml
vendored
|
@ -1,12 +1,15 @@
|
||||||
|
---
|
||||||
|
|
||||||
name: Test Upload
|
name: Test Upload
|
||||||
|
|
||||||
on:
|
on: # yamllint disable-line rule:truthy
|
||||||
pull_request:
|
|
||||||
push:
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
services:
|
services:
|
||||||
devpi:
|
devpi:
|
||||||
image: muccg/devpi
|
image: muccg/devpi
|
||||||
|
@ -14,6 +17,7 @@ jobs:
|
||||||
DEVPI_PASSWORD: abcd1234
|
DEVPI_PASSWORD: abcd1234
|
||||||
ports:
|
ports:
|
||||||
- 3141
|
- 3141
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: python3 -m pip install --upgrade pip build twine
|
- run: python3 -m pip install --upgrade pip build twine
|
||||||
- run: mkdir -p src/test_package
|
- run: mkdir -p src/test_package
|
||||||
|
@ -34,7 +38,8 @@ jobs:
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: root
|
TWINE_USERNAME: root
|
||||||
TWINE_PASSWORD: abcd1234
|
TWINE_PASSWORD: abcd1234
|
||||||
TWINE_REPOSITORY_URL: http://localhost:${{ job.services.devpi.ports['3141'] }}/root/public/
|
TWINE_REPOSITORY_URL: >-
|
||||||
|
http://localhost:${{ job.services.devpi.ports['3141'] }}/root/public/
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: test
|
path: test
|
||||||
|
@ -43,3 +48,5 @@ jobs:
|
||||||
user: root
|
user: root
|
||||||
password: abcd1234
|
password: abcd1234
|
||||||
repository_url: http://devpi:3141/root/public/
|
repository_url: http://devpi:3141/root/public/
|
||||||
|
|
||||||
|
...
|
||||||
|
|
Loading…
Reference in a new issue