Skip to content

Commit 532a4fe

Browse files
authored
Switch to ubuntu-latest, install python for CI tests. (#514)
1 parent 6108dd3 commit 532a4fe

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
uses: ludeeus/action-shellcheck@master
5757

5858
test:
59-
runs-on: ubuntu-latest-m
59+
runs-on: ubuntu-latest
6060
needs: [setup, lint]
6161
steps:
6262
- uses: actions/checkout@v4
@@ -66,6 +66,11 @@ jobs:
6666
path: |
6767
.venv
6868
key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/test.txt') }}
69+
70+
- name: Set up Python ${{ env.PYTHON_VERSION }}
71+
uses: actions/setup-python@v5
72+
with:
73+
python-version: ${{ env.PYTHON_VERSION }}
6974
- name: Run core tests
7075
run: |
7176
python${{ env.PYTHON_VERSION }} -m venv .venv
@@ -98,16 +103,21 @@ jobs:
98103
# TODO - figure out best practice for caching docker images
99104
# (Using the virtualenv to get pytest)
100105
test_dockerfile:
101-
runs-on: ubuntu-latest-m
106+
runs-on: ubuntu-latest
102107
needs: [setup, lint]
103108
steps:
104109
- uses: actions/checkout@v4
105110
- uses: actions/cache@v4
106111
id: virtualenv-cache
107112
with:
113+
python-version: ${{ env.PYTHON_VERSION }}
108114
path: |
109115
.venv
110116
key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/test.txt') }}
117+
- name: Set up Python ${{ env.PYTHON_VERSION }}
118+
uses: actions/setup-python@v5
119+
with:
120+
python-version: ${{ env.PYTHON_VERSION }}
111121
- name: Test Dockerfile
112122
run: |
113123
python${{ env.PYTHON_VERSION }} -m venv .venv

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
#arch: ["arm64", "amd64"]
4949
# NOTE(luke): temporary disable arm64 since its failing the smoke test
5050
arch: ["amd64"]
51-
runs-on: ubuntu-latest-m
51+
runs-on: ubuntu-latest
5252
needs: [setup, set-short-sha]
5353
env:
5454
SHORT_SHA: ${{ needs.set-short-sha.outputs.short_sha }}
@@ -103,7 +103,7 @@ jobs:
103103
# write to the build repository to cache for the publish-images job
104104
docker push $DOCKER_BUILD_REPOSITORY:${{ matrix.arch }}-$SHORT_SHA
105105
publish-images:
106-
runs-on: ubuntu-latest-m
106+
runs-on: ubuntu-latest
107107
needs: [setup, set-short-sha, build-images]
108108
env:
109109
SHORT_SHA: ${{ needs.set-short-sha.outputs.short_sha }}

0 commit comments

Comments
 (0)