From 8ad5f0e7e0fb5162b2f87109641cec24bc632149 Mon Sep 17 00:00:00 2001 From: Liam Bigelow <40188355+bglw@users.noreply.github.com> Date: Mon, 30 Sep 2024 09:56:12 +1300 Subject: [PATCH] Install Python earlier in CI --- .github/workflows/test.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9603dd43..15f54e70 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -65,6 +65,13 @@ jobs: default: true components: rustfmt, clippy + - name: Set up python 3.12 + uses: actions/setup-python@v5 + with: + python-version: "3.12" + # NOTE: ^this strategy leaves older python versions intentionally + # without test coverage to keep CI fast. + - name: Check versions run: | cargo --version @@ -112,16 +119,9 @@ jobs: - name: Test CLI run: ./test_ci.sh "release" - - name: Set up python 3.12 - uses: actions/setup-python@v5 - with: - python-version: "3.12" - # NOTE: ^this strategy leaves older python versions intentionally - # without test coverage to keep CI fast. - - name: Set up poetry run: ./wrappers/python/scripts/ci/github/setup_poetry.sh - + - name: cache venv uses: actions/cache@v4 with: @@ -142,7 +142,7 @@ jobs: if: runner.os == 'Linux' working-directory: ./wrappers/python run: ./scripts/ci/python_lints.sh - + - name: ensure cog up-to-date # avoid duplicating linting work on different OSes if: runner.os == 'Linux' @@ -161,4 +161,3 @@ jobs: # ^ guard against the tests getting deadlock if the subprocess pipe # gets clogged run: ./wrappers/python/scripts/ci/github/integration_tests.sh -