Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.

Commit ebc1fe7

Browse files
committed
Add services to tests pipeline
1 parent 582c750 commit ebc1fe7

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,35 @@ on:
88

99
jobs:
1010
build:
11-
11+
name: Tests Pipeline (Python ${{ matrix.python-version }})
1212
runs-on: ubuntu-latest
13+
1314
strategy:
1415
max-parallel: 4
1516
matrix:
1617
python-version: [3.11]
18+
19+
services:
20+
mysql:
21+
image: mysql:5.7
22+
env:
23+
MYSQL_ROOT_PASSWORD: ''
24+
MYSQL_DATABASE: 'boilerplate'
25+
MYSQL_USER: 'user'
26+
MYSQL_PASSWORD: 'secret'
27+
ports:
28+
- 3306/tcp
29+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
30+
31+
redis:
32+
image: redis
33+
options: >-
34+
--health-cmd "redis-cli ping"
35+
--health-interval 10s
36+
--health-timeout 5s
37+
--health-retries 5
38+
ports:
39+
- 6379:6379
1740

1841
steps:
1942
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)