File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ on: # yamllint disable-line rule:truthy
7
7
pull_request :
8
8
9
9
env :
10
+ devpi-password : abcd1234
11
+ devpi-username : root
12
+
10
13
FORCE_COLOR : 1 # Request colored output from CLI tools supporting it
11
14
MYPY_FORCE_COLOR : 1 # MyPy's color enforcement
12
15
PIP_DISABLE_PIP_VERSION_CHECK : 1
@@ -26,11 +29,19 @@ jobs:
26
29
smoke-test :
27
30
runs-on : ubuntu-latest
28
31
32
+ env :
33
+ TWINE_REPOSITORY_URL : >-
34
+ http://devpi:${{
35
+ job.services.devpi.ports['3141']
36
+ }}/${{
37
+ env.devpi-username
38
+ }}/public/
39
+
29
40
services :
30
41
devpi :
31
42
image : muccg/devpi
32
43
env :
33
- DEVPI_PASSWORD : abcd1234
44
+ DEVPI_PASSWORD : ${{ env.devpi-password }}
34
45
ports :
35
46
- 3141
36
47
@@ -54,17 +65,15 @@ jobs:
54
65
- run : python3 -m build
55
66
- run : twine register dist/*.tar.gz
56
67
env :
57
- TWINE_USERNAME : root
58
- TWINE_PASSWORD : abcd1234
59
- TWINE_REPOSITORY_URL : >-
60
- http://localhost:${{ job.services.devpi.ports['3141'] }}/root/public/
68
+ TWINE_USERNAME : ${{ env.devpi-username }}
69
+ TWINE_PASSWORD : ${{ env.devpi-password }}
61
70
- uses : actions/checkout@v3
62
71
with :
63
72
path : test
64
73
- uses : ./test
65
74
with :
66
- user : root
67
- password : abcd1234
68
- repository_url : http://devpi:3141/root/public/
75
+ user : ${{ env.devpi-username }}
76
+ password : ${{ env.devpi-password }}
77
+ repository_url : ${{ env.TWINE_REPOSITORY_URL }}
69
78
70
79
...
You can’t perform that action at this time.
0 commit comments