Skip to content

Commit d848fb8

Browse files
committed
[py] update ci to use the right os and skip unnecessary python installs
1 parent ac94275 commit d848fb8

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

.github/workflows/ci-python.yml

+2-18
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
tox_docs:
4444
if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run python]') == true }}
4545
needs: check_workflow
46-
runs-on: ubuntu-latest
46+
runs-on: ubuntu-20.04
4747
steps:
4848
- name: Checkout source tree
4949
uses: actions/checkout@v3
@@ -63,7 +63,7 @@ jobs:
6363
tox_mypy:
6464
if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run python]') == true }}
6565
needs: check_workflow
66-
runs-on: ubuntu-latest
66+
runs-on: ubuntu-20.04
6767
steps:
6868
- name: Checkout source tree
6969
uses: actions/checkout@v3
@@ -98,10 +98,6 @@ jobs:
9898
key: ${{ runner.os }}-bazel-python-unit-tests-${{ hashFiles('**/BUILD.bazel') }}
9999
restore-keys: |
100100
${{ runner.os }}-bazel-python-unit-tests-
101-
- name: Set up Python 3.7
102-
uses: actions/setup-python@v4
103-
with:
104-
python-version: 3.7.10
105101
- name: Setup Java
106102
uses: actions/setup-java@v3
107103
with:
@@ -131,10 +127,6 @@ jobs:
131127
${{ runner.os }}-bazel-python-unit-tests-
132128
- name: Setup Fluxbox
133129
run: sudo apt-get -y install fluxbox
134-
- name: Set up Python 3.7
135-
uses: actions/setup-python@v4
136-
with:
137-
python-version: 3.7.10
138130
- name: Setup Chrome
139131
uses: browser-actions/setup-chrome@latest
140132
- name: Start XVFB
@@ -168,10 +160,6 @@ jobs:
168160
${{ runner.os }}-bazel-python-unit-tests-
169161
- name: Setup Fluxbox
170162
run: sudo apt-get -y install fluxbox
171-
- name: Set up Python 3.7
172-
uses: actions/setup-python@v4
173-
with:
174-
python-version: 3.7.10
175163
- name: Setup Java
176164
uses: actions/setup-java@v3
177165
with:
@@ -212,10 +200,6 @@ jobs:
212200
${{ runner.os }}-bazel-python-unit-tests-
213201
- name: Setup Fluxbox
214202
run: sudo apt-get -y install fluxbox
215-
- name: Set up Python 3.7
216-
uses: actions/setup-python@v4
217-
with:
218-
python-version: 3.7.10
219203
- name: Setup Java
220204
uses: actions/setup-java@v3
221205
with:

0 commit comments

Comments
 (0)