Skip to content

Commit 5f71523

Browse files
committed
ci: switch to amazon runners
1 parent 0744e23 commit 5f71523

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/lint.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,21 @@ on:
88

99
jobs:
1010
lint:
11-
runs-on: ubuntu-20.04
11+
runs-on: linux.2xlarge
1212
steps:
1313
- name: Setup Python
14-
uses: actions/setup-python@v2
14+
# This hash has been reviewed for security issues. If upgrading please
15+
# rereview the action source.
16+
uses: kishaningithub/setup-python-amazon-linux@46d057bc1c866dd51b4d2ad0c7631e9e8eed13e1
1517
with:
16-
python-version: "3.10"
17-
architecture: x64
18+
python-version: '3.10'
1819
- name: Checkout
1920
uses: actions/checkout@v2
2021
- name: Install Dependencies
2122
run: |
2223
set -eux
2324
24-
sudo apt-get install -y protobuf-compiler
25+
sudo yum install -y protobuf-compiler
2526
2627
pip install .[dev] -v
2728
- name: Run Python Lint

.github/workflows/unittest.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,23 @@ jobs:
1111
strategy:
1212
matrix:
1313
os:
14-
- ubuntu-20.04
14+
- "linux.2xlarge"
1515
- "linux.4xlarge.nvidia.gpu"
1616
runs-on: ${{ matrix.os }}
1717
steps:
18+
# This hash has been reviewed for security issues. If upgrading please
19+
# rereview the action source.
1820
- name: Setup Python
19-
uses: actions/setup-python@v2
21+
uses: kishaningithub/setup-python-amazon-linux@46d057bc1c866dd51b4d2ad0c7631e9e8eed13e1
2022
with:
21-
python-version: "3.10"
22-
architecture: x64
23+
python-version: '3.10'
2324
- name: Checkout
2425
uses: actions/checkout@v2
2526
- name: Install Dependencies
2627
run: |
2728
set -eux
2829
29-
sudo apt-get install -y protobuf-compiler
30+
sudo yum install -y protobuf-compiler
3031
3132
pip install -e .[dev] -v
3233
- name: Run Python Tests

0 commit comments

Comments
 (0)