mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-30 23:36:23 +02:00
update github workflow for testing
This commit is contained in:
parent
414b56251d
commit
660955f663
1 changed files with 4 additions and 64 deletions
68
.github/workflows/test-and-deploy.yml
vendored
68
.github/workflows/test-and-deploy.yml
vendored
|
|
@ -13,10 +13,10 @@ permissions:
|
||||||
pull-requests: read
|
pull-requests: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-windows:
|
test-gpy:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest]
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
||||||
python: ['3.9', '3.10', '3.11', '3.12']
|
python: ['3.9', '3.10', '3.11', '3.12']
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -27,7 +27,6 @@ jobs:
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
|
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install setuptools
|
pip install setuptools
|
||||||
|
|
@ -41,33 +40,6 @@ jobs:
|
||||||
pip install matplotlib
|
pip install matplotlib
|
||||||
pip install pytest
|
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
|
- name: Install test dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install matplotlib
|
pip install matplotlib
|
||||||
|
|
@ -77,39 +49,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pytest GPy/testing
|
pytest GPy/testing
|
||||||
|
|
||||||
test-macos:
|
build-gpy:
|
||||||
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:
|
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -226,7 +166,7 @@ jobs:
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
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'
|
if: github.event_name == 'release'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue