Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[py] [run python] Upgrade GitHub Actions #11257

Merged
merged 4 commits into from
Nov 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 24 additions & 21 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source tree
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7.10
- name: Install dependencies
Expand All @@ -46,9 +46,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source tree
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7.10
- name: Install dependencies
Expand All @@ -66,9 +66,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source tree
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7.9
- name: Install dependencies
Expand All @@ -88,9 +88,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source tree
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Cache Bazel artifacts
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.cache/bazel-disk
Expand All @@ -99,13 +99,14 @@ jobs:
restore-keys: |
${{ runner.os }}-bazel-python-unit-tests-
- name: Set up Python 3.7
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7.10
- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Run unit tests
uses: ./.github/actions/bazel
with:
Expand All @@ -117,9 +118,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source tree
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Cache Bazel artifacts
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.cache/bazel-disk
Expand All @@ -131,7 +132,7 @@ jobs:
- name: Setup Fluxbox
run: sudo apt-get -y install fluxbox
- name: Set up Python 3.7
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7.10
- name: Setup Chrome
Expand All @@ -154,9 +155,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source tree
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Cache Bazel artifacts
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.cache/bazel-disk
Expand All @@ -168,13 +169,14 @@ jobs:
- name: Setup Fluxbox
run: sudo apt-get -y install fluxbox
- name: Set up Python 3.7
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7.10
- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Setup Firefox
uses: abhi1693/[email protected]
with:
Expand All @@ -197,9 +199,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source tree
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Cache Bazel artifacts
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.cache/bazel-disk
Expand All @@ -211,13 +213,14 @@ jobs:
- name: Setup Fluxbox
run: sudo apt-get -y install fluxbox
- name: Set up Python 3.7
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7.10
- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Setup Firefox
uses: abhi1693/[email protected]
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/should-workflow-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ jobs:
result: ${{ steps.check-bazel-target-prefix.outputs.run-workflow }}
steps:
- name: Checkout source tree
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 50
- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Copy bazelrc
run: cp .github/.bazelrc.local .
shell: bash
Expand Down