Skip to content

Commit

Permalink
[py] update ci to use the right os and skip unnecessary python installs
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 2, 2022
1 parent ac94275 commit d848fb8
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
tox_docs:
if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run python]') == true }}
needs: check_workflow
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Checkout source tree
uses: actions/checkout@v3
Expand All @@ -63,7 +63,7 @@ jobs:
tox_mypy:
if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run python]') == true }}
needs: check_workflow
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Checkout source tree
uses: actions/checkout@v3
Expand Down Expand Up @@ -98,10 +98,6 @@ jobs:
key: ${{ runner.os }}-bazel-python-unit-tests-${{ hashFiles('**/BUILD.bazel') }}
restore-keys: |
${{ runner.os }}-bazel-python-unit-tests-
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7.10
- name: Setup Java
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -131,10 +127,6 @@ jobs:
${{ runner.os }}-bazel-python-unit-tests-
- name: Setup Fluxbox
run: sudo apt-get -y install fluxbox
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7.10
- name: Setup Chrome
uses: browser-actions/setup-chrome@latest
- name: Start XVFB
Expand Down Expand Up @@ -168,10 +160,6 @@ jobs:
${{ runner.os }}-bazel-python-unit-tests-
- name: Setup Fluxbox
run: sudo apt-get -y install fluxbox
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7.10
- name: Setup Java
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -212,10 +200,6 @@ jobs:
${{ runner.os }}-bazel-python-unit-tests-
- name: Setup Fluxbox
run: sudo apt-get -y install fluxbox
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7.10
- name: Setup Java
uses: actions/setup-java@v3
with:
Expand Down

0 comments on commit d848fb8

Please sign in to comment.