Adjust the GHA workflow per yamllint rules

This commit is contained in:
Sviatoslav Sydorenko 2022-12-06 00:11:43 +01:00
parent a737e68aed
commit cde4774fb1
No known key found for this signature in database
GPG Key ID: 9345E8FEA89CA455
1 changed files with 38 additions and 31 deletions

View File

@ -1,12 +1,15 @@
---
name: Test Upload
on:
pull_request:
on: # yamllint disable-line rule:truthy
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
services:
devpi:
image: muccg/devpi
@ -14,6 +17,7 @@ jobs:
DEVPI_PASSWORD: abcd1234
ports:
- 3141
steps:
- run: python3 -m pip install --upgrade pip build twine
- run: mkdir -p src/test_package
@ -34,7 +38,8 @@ jobs:
env:
TWINE_USERNAME: root
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
with:
path: test
@ -43,3 +48,5 @@ jobs:
user: root
password: abcd1234
repository_url: http://devpi:3141/root/public/
...