From 47f2cd049b76780621c66eea77e5147fe6ccd270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sun, 17 Mar 2024 12:17:55 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Re-enable=20latest=20matrix=20bu?= =?UTF-8?q?ild=20to=20improve=20speed/parallelize?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c209c33..ca947b6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,6 +17,8 @@ jobs: strategy: matrix: image: + - name: latest + python_version: "3.11" - name: python3.11 python_version: "3.11" - name: python3.10 @@ -40,6 +42,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 - name: Build + if: matrix.image.name != 'latest' uses: docker/build-push-action@v2 with: push: false @@ -47,13 +50,13 @@ jobs: context: ./docker-images/ file: ./docker-images/${{ matrix.image.name }}.dockerfile - name: Build latest - if: matrix.image.name == 'python3.11' + if: matrix.image.name == 'latest' uses: docker/build-push-action@v2 with: push: false tags: tiangolo/uvicorn-gunicorn:latest context: ./docker-images/ - file: ./docker-images/${{ matrix.image.name }}.dockerfile + file: ./docker-images/python${{ matrix.image.python_version }}.dockerfile - name: Set up Python uses: actions/setup-python@v4 with: @@ -61,12 +64,13 @@ jobs: - name: Install Dependencies run: python -m pip install docker pytest - name: Test Image + if: matrix.image.name != 'latest' run: bash scripts/test.sh env: NAME: ${{ matrix.image.name }} PYTHON_VERSION: ${{ matrix.image.python_version }} - name: Test Image latest - if: matrix.image.name == 'python3.11' + if: matrix.image.name == 'latest' run: bash scripts/test.sh env: NAME: latest