Adjust the GHA workflow per yamllint rules
This commit is contained in:
parent
a737e68aed
commit
cde4774fb1
|
@ -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 New Issue