|
10 | 10 | jobs: |
11 | 11 | run-tests: |
12 | 12 | name: Run pre-merge checks |
13 | | - runs-on: ubuntu-20.04 |
| 13 | + runs-on: ubuntu-latest |
14 | 14 | env: |
15 | 15 | GOOGLE_APPLICATION_CREDENTIALS: service_account_credentials.json |
16 | 16 | steps: |
17 | | - - name: Checkout reboot-dev/pyprotoc-plugin |
18 | | - uses: actions/checkout@v2 |
| 17 | + - uses: actions/checkout@v2 |
19 | 18 | with: |
20 | | - # We don't need special credentials since this is a public repo |
21 | | - # that only depends on other public repos. |
22 | 19 | submodules: recursive |
23 | | - - name: Install Python 3.10 and set it as the default |
24 | | - # To set Python 3.10 as the default we use `update-alternatives`: |
25 | | - # https://linux.die.net/man/8/update-alternatives |
26 | | - # We must set `python3` in addition to `python` because Bazel knows and cares |
27 | | - # about whether it's using python2 or python3, and will enforce its desire by |
28 | | - # explicitly running the `python2` or `python3` command. |
29 | | - run: | |
30 | | - sudo apt-get update \ |
31 | | - && DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends \ |
32 | | - curl gpg gpg-agent software-properties-common |
33 | | - sudo add-apt-repository ppa:deadsnakes/ppa \ |
34 | | - && sudo apt-get update \ |
35 | | - && DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends \ |
36 | | - python3.10 \ |
37 | | - python3.10-dev \ |
38 | | - python3.10-venv |
39 | | - sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 |
40 | | - sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 |
41 | | - python --version |
42 | | - python3 --version |
43 | 20 | - name: Set up read+write remote cache credentials (when on main) |
44 | 21 | # With the exception of GITHUB_TOKEN, secrets are not passed to the runner |
45 | 22 | # when a workflow is triggered from a forked repository. We can therefore |
|
0 commit comments