From 128fce95dfa8827bbf83ab5158210e6b14d2cae0 Mon Sep 17 00:00:00 2001 From: Harry Jack Date: Mon, 1 Jul 2024 01:38:48 +0000 Subject: [PATCH] matrix python version for ci tests --- .github/workflows/build.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ecd8a4..06eb7be 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,20 +11,16 @@ on: jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.8', '3.12'] steps: - uses: actions/checkout@v4 - - name: Set up Python + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: - python-version: | - 3.8 - 3.12 - - name: Update pip - run: | - python -m pip install --upgrade pip + python-version: ${{ matrix.python-version }} - name: Run ci tests - run: | - bash ./scripts/ci.sh + run: bash ./scripts/ci.sh