From 0d5fecc6a38178d42ca207cd23b902b0136a145a Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Sat, 13 Jan 2024 19:08:31 +0100 Subject: [PATCH] github-actions: remove macos python3.9 test job --- .github/workflows/test-and-deploy.yml | 65 +++++++++++++++++++++++++-- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index d75d763e..f1ad849a 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -12,10 +12,10 @@ permissions: pull-requests: read jobs: - test: + test-windows: strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [windows-latest] python: ['3.9', '3.10', '3.11', '3.12'] runs-on: ${{ matrix.os }} steps: @@ -41,6 +41,63 @@ jobs: run: | pytest GPy/testing + test-linux: + strategy: + matrix: + os: [ubuntu-latest] + python: ['3.9', '3.10', '3.11', '3.12'] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + + - name: Install dependencies + run: | + pip install setuptools + pip install matplotlib + pip install pytest + + - name: Install lib + run: | + python setup.py develop + + - name: pytest + run: | + pytest GPy/testing + test-macos: + strategy: + matrix: + os: [macos-latest] + python: ['3.10', '3.11', '3.12'] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + + - name: Install dependencies + run: | + pip install setuptools + pip install matplotlib + pip install pytest + + - name: Install lib + run: | + python setup.py develop + + - name: pytest + run: | + pytest GPy/testing + build-windows: strategy: matrix: @@ -73,7 +130,7 @@ jobs: name: dist-artifacts-${{ matrix.os }}-${{ matrix.python }} path: dist - build-mac: + build-macos: strategy: matrix: os: [macos-latest] @@ -155,7 +212,7 @@ jobs: deploy: runs-on: ubuntu-latest - needs: [test, build-linux, build-windows, build-mac] + needs: [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos] steps: - name: Checkout uses: actions/checkout@v4