-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (34 loc) · 987 Bytes
/
module-2.yaml
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
name: Module 2
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- 'module-2/**'
jobs:
minio-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Run minio
run: |
docker run -d -p 9000:9000 -p 9001:9001 quay.io/minio/minio server /data --console-address ":9001"
- name: Setup env
run: |
pip install -r module-2/requirements.test.txt
- name: Run test
run: |
export AWS_ACCESS_KEY_ID=minioadmin
export AWS_SECRET_ACCESS_KEY=minioadmin
export AWS_ENDPOINT_URL=http://127.0.0.1:9000
aws s3api create-bucket --bucket test
pytest -ss ./module-2/minio_storage/test_minio_client.py