-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (86 loc) · 2.36 KB
/
Copy pathtests.yml
File metadata and controls
96 lines (86 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: E2E Tests
on:
workflow_dispatch:
push:
branches: ["main"]
paths:
- 'src/version.py'
- 'src/lzl/version.py'
pull_request:
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
fail-fast: false
services:
redis:
image: redis:alpine
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
minio:
# image: minio/minio:RELEASE.2024-12-18T13-15-44Z
image: minio/minio:edge-cicd
ports:
- 9000:9000
# - 9001:9001
env:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
options: >-
--health-cmd "curl --silent --fail http://localhost:9000/minio/health/live"
--health-interval 30s
--health-timeout 10s
--health-retries 5
volumes:
- /tmp/minio_data:/data
minio2:
# image: minio/minio:RELEASE.2024-12-18T13-15-44Z
image: minio/minio:edge-cicd
ports:
- "9001:9000"
# - "9091:9090"
env:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
options: >-
--health-cmd "curl --silent --fail http://localhost:9000/minio/health/live"
--health-interval 30s
--health-timeout 10s
--health-retries 5
volumes:
- /tmp/minio_data2:/data
steps:
# Proceeding with file creation.
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install dependencies
run: |
uv sync --extra e2e
- name: Run E2E Tests
env:
MINIO_ENDPOINT: http://localhost:9000
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
MINIO2_ENDPOINT: http://localhost:9001
MINIO2_ACCESS_KEY: minioadmin
MINIO2_SECRET_KEY: minioadmin
MINIO2_REGION: us-east-1
REDIS_URL: redis://localhost:6379/0
run: |
uv run pytest tests/e2e -v -s