@@ -12,10 +12,12 @@ jobs:
1212
1313 runs-on : ubuntu-latest
1414 strategy :
15- max-parallel : 1
1615 matrix :
1716 # 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}}]
1921
2022 steps :
2123
@@ -37,10 +39,10 @@ jobs:
3739 token : ${{ secrets.ACTIONS_ACCESS_TOKEN }}
3840 ref : ${{ github.head_ref }}
3941
40- - name : Set up Python ${{ matrix.python-version }}
42+ - name : Set up Python ${{ matrix.python-test-info.python- version }}
4143 uses : actions/setup-python@v2
4244 with :
43- python-version : ${{ matrix.python-version }}
45+ python-version : ${{ matrix.python-test-info.python- version }}
4446
4547 - name : yapf
4648 id : yapf
7678 # make sure to tell tox to use these environs in tox.ini
7779 #
7880 # 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 }}
8082
8183 # 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 }}
8385 run : |
8486 tox -e py -- -svvx
0 commit comments