-
Notifications
You must be signed in to change notification settings - Fork 2
81 lines (68 loc) · 2.5 KB
/
regression_suite.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
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
name: Regression Suite
on: [push, pull_request]
jobs:
regression_tests:
name: Regression Tests
runs-on: ubuntu-latest
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
path: ./
- name: Set Up Environment
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Requirements
run: |
python -m pip install --upgrade pip
pip install -r ./requirements.txt
pip install -r ./tests/requirements.txt
- name: Start MinIo Server
run: |
docker run -d -p 9000:9000 --name minio \
-e "MINIO_ACCESS_KEY=minioadmin" \
-e "MINIO_SECRET_KEY=minioadmin" \
-v /tmp/data:/data \
-v /tmp/config:/root/.minio \
minio/minio server /data
- name: Start GCS Emulator
run: |
docker run -d --name \
fake-gcs-server \
-p 9090:4443 \
fsouza/fake-gcs-server \
-scheme http
- name: Run Regression Tests
run: coverage run -m pytest --color=yes
env:
MINIO_END_POINT: 127.0.0.1:9000
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
AZURE_STORAGE_CONNECTION_STRING: DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;
- name: Check Coverage
run: coverage report --include=mabel/* --fail-under=85 -m
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: false
mypy:
name: Type Checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set Up Environment
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Requirements
run: |
python -m pip install --upgrade pip mypy
pip install -r $GITHUB_WORKSPACE/tests/requirements.txt
- name: Execute Test
run: mypy --ignore-missing-imports --python-version 3.9 --no-strict-optional mabel