Skip to content

Commit

Permalink
update github workflow for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBubel committed Jul 20, 2024
1 parent 580a6ce commit c8e3333
Showing 1 changed file with 6 additions and 60 deletions.
66 changes: 6 additions & 60 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,10 @@ permissions:
pull-requests: read

jobs:
test-windows:
test-gpy:
strategy:
matrix:
os: [windows-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-linux:
strategy:
matrix:
os: [ubuntu-latest]
os: [windows-latest, ubuntu-latest, macos-latest]
python: ['3.9', '3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -57,49 +28,24 @@ jobs:
with:
python-version: ${{ matrix.python }}

- name: Install dependencies
- name: Install build dependencies
run: |
pip install setuptools
pip install matplotlib
pip install pytest
- name: Install lib
run: |
python setup.py develop
- name: pytest
- name: Install test dependencies
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:
build-gpy:
if: github.event_name == 'release'
strategy:
matrix:
Expand Down Expand Up @@ -216,7 +162,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
Expand Down

0 comments on commit c8e3333

Please sign in to comment.