Skip to content

Commit

Permalink
👷 Re-enable latest matrix build to improve speed/parallelize
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Mar 17, 2024
1 parent e2cb8ae commit 47f2cd0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
strategy:
matrix:
image:
- name: latest
python_version: "3.11"
- name: python3.11
python_version: "3.11"
- name: python3.10
Expand All @@ -40,33 +42,35 @@ jobs:
steps:
- uses: actions/checkout@v4.1.0
- name: Build
if: matrix.image.name != 'latest'
uses: docker/build-push-action@v2
with:
push: false
tags: tiangolo/uvicorn-gunicorn:${{ matrix.image.name }}
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:
python-version: "3.10"
- 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
Expand Down

0 comments on commit 47f2cd0

Please sign in to comment.