@@ -12,10 +12,12 @@ jobs:
12
12
13
13
runs-on : ubuntu-latest
14
14
strategy :
15
- max-parallel : 1
16
15
matrix :
17
16
# TODO: unlock parallel testing by using more API keys
18
- python-version : [3.6, 3.7, 3.8]
17
+ python-test-info :
18
+ python-version : [3.6, 3.7, 3.8]
19
+ python-prod-key : [${{ secrets.LABELBOX_API_KEY}}, ${{ secrets.PROD_LABELBOX_API_KEY_2}},${{ secrets.PROD_LABELBOX_API_KEY_3}}]
20
+ python-staging-key : [${{ secrets.STAGING_LABELBOX_API_KEY}}, ${{ secrets.STAGING_LABELBOX_API_KEY_2}},${{ secrets.STAGING_LABELBOX_API_KEY_3}}]
19
21
20
22
steps :
21
23
@@ -37,10 +39,10 @@ jobs:
37
39
token : ${{ secrets.ACTIONS_ACCESS_TOKEN }}
38
40
ref : ${{ github.head_ref }}
39
41
40
- - name : Set up Python ${{ matrix.python-version }}
42
+ - name : Set up Python ${{ matrix.python-test-info.python- version }}
41
43
uses : actions/setup-python@v2
42
44
with :
43
- python-version : ${{ matrix.python-version }}
45
+ python-version : ${{ matrix.python-test-info.python- version }}
44
46
45
47
- name : yapf
46
48
id : yapf
76
78
# make sure to tell tox to use these environs in tox.ini
77
79
#
78
80
# msokoloff+prod-python@labelbox.com
79
- LABELBOX_TEST_API_KEY_PROD : ${{ secrets.LABELBOX_API_KEY }}
81
+ LABELBOX_TEST_API_KEY_PROD : ${{ matrix.python-test-info.python-prod-key }}
80
82
81
83
# randall+staging-python@labelbox.com
82
- LABELBOX_TEST_API_KEY_STAGING : ${{ secrets.STAGING_LABELBOX_API_KEY }}
84
+ LABELBOX_TEST_API_KEY_STAGING : ${{ matrix.python-test-info.python-staging-key }}
83
85
run : |
84
86
tox -e py -- -svvx
0 commit comments