Skip to content

Commit b85ccbe

Browse files
committed
ci: expose service ports explicity
1 parent 332b7cc commit b85ccbe

4 files changed

Lines changed: 24 additions & 5 deletions

File tree

.github/workflows/mirror.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44

55
jobs:
66
mirror:
7+
8+
env:
9+
RUNNER_TOOL_CACHE: /toolcache
10+
711
runs-on: ubuntu-latest
812
steps:
913
- name: Checkout code

.github/workflows/pypi.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55

66
jobs:
77
packagepublish:
8+
9+
env:
10+
RUNNER_TOOL_CACHE: /toolcache
11+
812
runs-on: ubuntu-latest
913
steps:
1014
- name: Check out code
@@ -58,6 +62,8 @@ jobs:
5862
- name: "Get Previous tag"
5963
id: previoustag
6064
uses: "WyriHaximus/github-action-get-previous-tag@v1"
65+
with:
66+
fallback: 0.0.1
6167

6268
- uses: actions/setup-python@v5
6369
with:
@@ -82,4 +88,5 @@ jobs:
8288
- name: Publish package
8389
if: github.ref_name == 'main'
8490
run: |
85-
python -m twine upload dist/* --non-interactive -u__token__ -p${{ secrets.PYPI_TOKEN }}
91+
unset DBUS_SESSION_BUS_ADDRESS
92+
python -m twine upload --verbose dist/* --non-interactive -u__token__ -p${{ secrets.PYPI_TOKEN }}

.github/workflows/servc.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77

88
jobs:
99
servc:
10+
11+
env:
12+
RUNNER_TOOL_CACHE: /toolcache
13+
1014
runs-on: ubuntu-latest
1115

1216
strategy:
@@ -26,7 +30,7 @@ jobs:
2630
RABBITMQ_DEFAULT_USER: guest
2731
RABBITMQ_DEFAULT_PASS: guest
2832
ports:
29-
- 5672/tcp
33+
- 5672:5672
3034

3135
redis:
3236
image: redis
@@ -36,7 +40,7 @@ jobs:
3640
--health-timeout 5s
3741
--health-retries 5
3842
ports:
39-
- 6379/tcp
43+
- 6379:6379
4044

4145
steps:
4246
- if: github.server_url != 'https://github.com'

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44

55
jobs:
66
unittest:
7+
8+
env:
9+
RUNNER_TOOL_CACHE: /toolcache
10+
711
runs-on: ubuntu-latest
812

913
strategy:
@@ -20,7 +24,7 @@ jobs:
2024
RABBITMQ_DEFAULT_USER: guest
2125
RABBITMQ_DEFAULT_PASS: guest
2226
ports:
23-
- 5672/tcp
27+
- 5672:5672
2428

2529
redis:
2630
image: redis
@@ -30,7 +34,7 @@ jobs:
3034
--health-timeout 5s
3135
--health-retries 5
3236
ports:
33-
- 6379/tcp
37+
- 6379:6379
3438

3539
steps:
3640
- if: github.server_url != 'https://github.com'

0 commit comments

Comments
 (0)