From cd2975f3761d02f09f563a5df8616110854ac7d9 Mon Sep 17 00:00:00 2001 From: Martin Gaughran Date: Fri, 11 Aug 2023 13:56:12 +0000 Subject: [PATCH] Limit CI jobs to Python 3.10+ --- .github/workflows/code.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml index cbc3e280..f54318bb 100644 --- a/.github/workflows/code.yml +++ b/.github/workflows/code.yml @@ -32,12 +32,12 @@ jobs: fail-fast: false matrix: os: ["ubuntu-latest"] # can add windows-latest, macos-latest - python: ["3.8", "3.9", "3.10", "3.11"] + python: ["3.10", "3.11"] install: ["-e .[dev]"] # Make one version be non-editable to test both paths of version code include: - os: "ubuntu-latest" - python: "3.7" + python: "3.10" install: ".[dev]" runs-on: ${{ matrix.os }} @@ -146,9 +146,9 @@ jobs: - name: Build and export to Docker local cache uses: docker/build-push-action@v4 with: - # Note build-args, context, file, and target must all match between this - # step and the later build-push-action, otherwise the second build-push-action - # will attempt to build the image again + # Note build-args, context, file, and target must all match between this + # step and the later build-push-action, otherwise the second build-push-action + # will attempt to build the image again build-args: | PIP_OPTIONS=-r lockfiles/requirements.txt dist/*.whl context: artifacts/ @@ -156,8 +156,8 @@ jobs: target: runtime load: true tags: ${{ env.TEST_TAG }} - # If you have a long docker build (2+ minutes), uncomment the - # following to turn on caching. For short build times this + # If you have a long docker build (2+ minutes), uncomment the + # following to turn on caching. For short build times this # makes it a little slower #cache-from: type=gha #cache-to: type=gha,mode=max @@ -180,12 +180,12 @@ jobs: - name: Push cached image to container registry if: github.ref_type == 'tag' # || github.ref_name == 'main' uses: docker/build-push-action@v3 - # This does not build the image again, it will find the image in the + # This does not build the image again, it will find the image in the # Docker cache and publish it with: - # Note build-args, context, file, and target must all match between this - # step and the previous build-push-action, otherwise this step will - # attempt to build the image again + # Note build-args, context, file, and target must all match between this + # step and the previous build-push-action, otherwise this step will + # attempt to build the image again build-args: | PIP_OPTIONS=-r lockfiles/requirements.txt dist/*.whl context: artifacts/