Skip to content

Commit c83b8e5

Browse files
committed
parallelize
1 parent 70dc654 commit c83b8e5

File tree

1 file changed

+58
-58
lines changed

1 file changed

+58
-58
lines changed

.github/workflows/python-package.yml

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -17,67 +17,67 @@ jobs:
1717
# TODO: unlock parallel testing by using more API keys
1818
python-version: [3.6, 3.7, 3.8]
1919

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 }}
2525

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
3333
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 }}
3838

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 }}
4343

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
6969
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 }}
7979

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

Comments
 (0)