@@ -17,67 +17,67 @@ jobs:
17
17
# TODO: unlock parallel testing by using more API keys
18
18
python-version : [3.6, 3.7, 3.8]
19
19
20
- steps :
21
- - name : Cancel previous workflow
22
- uses : styfle/cancel-workflow-action@0.4.0
23
- with :
24
- access_token : ${{ github.token }}
20
+ steps :
21
+ - name : Cancel previous workflow
22
+ uses : styfle/cancel-workflow-action@0.4.0
23
+ with :
24
+ access_token : ${{ github.token }}
25
25
26
- - name : set environment for branch
27
- run : |
28
- if [[ "${{github.base_ref}}" == "master" || "${{github.ref}}" == "refs/heads/master" ]]; then
29
- echo "LABELBOX_TEST_ENVIRON=prod" >> $GITHUB_ENV
30
- else
31
- echo "LABELBOX_TEST_ENVIRON=staging" >> $GITHUB_ENV
32
- fi
26
+ - name : set environment for branch
27
+ run : |
28
+ if [[ "${{github.base_ref}}" == "master" || "${{github.ref}}" == "refs/heads/master" ]]; then
29
+ echo "LABELBOX_TEST_ENVIRON=prod" >> $GITHUB_ENV
30
+ else
31
+ echo "LABELBOX_TEST_ENVIRON=staging" >> $GITHUB_ENV
32
+ fi
33
33
34
- - uses : actions/checkout@v2
35
- with :
36
- token : ${{ secrets.ACTIONS_ACCESS_TOKEN }}
37
- ref : ${{ github.head_ref }}
34
+ - uses : actions/checkout@v2
35
+ with :
36
+ token : ${{ secrets.ACTIONS_ACCESS_TOKEN }}
37
+ ref : ${{ github.head_ref }}
38
38
39
- - name : Set up Python ${{ matrix.python-version }}
40
- uses : actions/setup-python@v2
41
- with :
42
- python-version : ${{ matrix.python-version }}
39
+ - name : Set up Python ${{ matrix.python-version }}
40
+ uses : actions/setup-python@v2
41
+ with :
42
+ python-version : ${{ matrix.python-version }}
43
43
44
- - name : yapf
45
- id : yapf
46
- uses : AlexanderMelde/yapf-action@master
47
- with :
48
- args : --verbose --recursive --parallel --style "google"
49
- - name : dependencies
50
- run : |
51
- sudo apt-get -y update
52
- sudo apt install -y libsm6 \
53
- libxext6 \
54
- ffmpeg \
55
- libfontconfig1 \
56
- libxrender1 \
57
- libgl1-mesa-glx
58
- - name : install labelbox package
59
- run : |
60
- python -m pip install --upgrade pip
61
- python -m pip install .
62
- - name : mypy
63
- run : |
64
- pip install mypy==0.782
65
- mypy -p labelbox --pretty --show-error-codes
66
- - name : Install package and test dependencies
67
- run : |
68
- pip install tox==3.18.1
44
+ - name : yapf
45
+ id : yapf
46
+ uses : AlexanderMelde/yapf-action@master
47
+ with :
48
+ args : --verbose --recursive --parallel --style "google"
49
+ - name : dependencies
50
+ run : |
51
+ sudo apt-get -y update
52
+ sudo apt install -y libsm6 \
53
+ libxext6 \
54
+ ffmpeg \
55
+ libfontconfig1 \
56
+ libxrender1 \
57
+ libgl1-mesa-glx
58
+ - name : install labelbox package
59
+ run : |
60
+ python -m pip install --upgrade pip
61
+ python -m pip install .
62
+ - name : mypy
63
+ run : |
64
+ pip install mypy==0.782
65
+ mypy -p labelbox --pretty --show-error-codes
66
+ - name : Install package and test dependencies
67
+ run : |
68
+ pip install tox==3.18.1
69
69
70
- # TODO: replace tox.ini with what the Makefile does
71
- # to make sure local testing is
72
- # identical to github actions which uses tox.ini
73
- - name : Test with tox
74
- env :
75
- # make sure to tell tox to use these environs in tox.ini
76
- #
77
- # msokoloff+prod-python@labelbox.com
78
- LABELBOX_TEST_API_KEY_PROD : ${{ secrets.LABELBOX_API_KEY }}
70
+ # TODO: replace tox.ini with what the Makefile does
71
+ # to make sure local testing is
72
+ # identical to github actions which uses tox.ini
73
+ - name : Test with tox
74
+ env :
75
+ # make sure to tell tox to use these environs in tox.ini
76
+ #
77
+ # msokoloff+prod-python@labelbox.com
78
+ LABELBOX_TEST_API_KEY_PROD : ${{ secrets.LABELBOX_API_KEY }}
79
79
80
- # randall+staging-python@labelbox.com
81
- LABELBOX_TEST_API_KEY_STAGING : ${{ secrets.STAGING_LABELBOX_API_KEY }}
82
- run : |
83
- tox -e py -- -svvx
80
+ # randall+staging-python@labelbox.com
81
+ LABELBOX_TEST_API_KEY_STAGING : ${{ secrets.STAGING_LABELBOX_API_KEY }}
82
+ run : |
83
+ tox -e py -- -svvx
0 commit comments