From 660955f663558523b0a91c0dad8a2137d99a31b6 Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Sat, 20 Jul 2024 13:30:27 +0200 Subject: [PATCH] update github workflow for testing --- .github/workflows/test-and-deploy.yml | 68 ++------------------------- 1 file changed, 4 insertions(+), 64 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 9390a2c5..8ef02012 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -13,10 +13,10 @@ permissions: pull-requests: read jobs: - test-windows: + test-gpy: strategy: matrix: - os: [windows-latest] + os: [windows-latest, ubuntu-latest, macos-latest] python: ['3.9', '3.10', '3.11', '3.12'] runs-on: ${{ matrix.os }} steps: @@ -27,7 +27,6 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} - - name: Install build dependencies run: | pip install setuptools @@ -41,33 +40,6 @@ jobs: pip install matplotlib pip install pytest - - name: pytest - 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 build dependencies - run: | - pip install setuptools - - - name: Install lib - run: | - python setup.py develop - - name: Install test dependencies run: | pip install matplotlib @@ -77,39 +49,7 @@ jobs: 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 build dependencies - run: | - pip install setuptools - - - name: Install lib - run: | - python setup.py develop - - - name: Install test dependencies - run: | - pip install matplotlib - pip install pytest - - - name: pytest - run: | - pytest GPy/testing - - build-windows: + build-gpy: if: github.event_name == 'release' strategy: matrix: @@ -226,7 +166,7 @@ jobs: deploy: runs-on: ubuntu-latest - needs: [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos] + needs: [test-gpy, build-linux, build-windows, build-macos] if: github.event_name == 'release' steps: - name: Checkout