From 43d1eaa33d8b61048878d10fc71247a52a32deaa Mon Sep 17 00:00:00 2001 From: Lin Zhihao <59785146+LinZhihao-723@users.noreply.github.com> Date: Fri, 29 Nov 2024 02:30:03 -0500 Subject: [PATCH] ci: Fix workflow failure caused by missing Python 3.7 in the latest macOS runner. (#42) Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com> --- .github/workflows/package.yaml | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml index baddd71..8c75de5 100644 --- a/.github/workflows/package.yaml +++ b/.github/workflows/package.yaml @@ -38,12 +38,12 @@ jobs: path: dist/* retention-days: 1 - test: + test-python37: needs: [build] strategy: matrix: - os: [macos-latest, ubuntu-latest] - python-version: ["3.7", "3.8", "3.11"] + os: [macos-13, ubuntu-latest] + python-version: ["3.7"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -53,14 +53,34 @@ jobs: python-version: ${{ matrix.python-version }} - name: Download wheels for Python3.7 - if: ${{ '3.7' == matrix.python-version }} uses: actions/download-artifact@v3 with: + # Since we don't build for Python 3.7, we download the Python 3.8 wheel instead. name: wheel-3.8 path: dist/ + - run: pip install --upgrade + pip + dist/clp_logging-*.whl + -r requirements-test.txt + + - run: python -m unittest -fv + + test: + needs: [build] + strategy: + matrix: + os: [macos-latest, ubuntu-latest] + python-version: ["3.8", "3.11"] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Download wheels for Built Python Versions - if: ${{ '3.7' != matrix.python-version }} uses: actions/download-artifact@v3 with: name: wheel-${{ matrix.python-version }}