-
Notifications
You must be signed in to change notification settings - Fork 10
43 lines (35 loc) · 1.07 KB
/
test.yml
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
name: tests
on:
workflow_dispatch:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install Deps
run: |
pip install --upgrade pylint
pip install --upgrade mypy
pip install --upgrade -r requirements.txt
pip install --upgrade .[test]
- name: Run Linter
run: pylint ./statsig --rcfile .pylintrc
- name: Run Type Checker
run: |
pip install types-requests
pip install types-redis
pip install types-protobuf
mypy ./statsig --ignore-missing-imports --check-untyped-defs --exclude ./build/lib,./statsig/grpc
- name: Run Tests
run: python3 -m unittest discover -s ./tests --verbose
env:
test_api_key: ${{ secrets.SDK_CONSISTENCY_TEST_COMPANY_API_KEY }}
test_client_key: ${{ secrets.KONG_CLIENT_SDK_KEY }}