mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-07-02 16:01:03 +02:00
add github workflows
This commit is contained in:
parent
81699d9564
commit
1024dba257
1 changed files with 24 additions and 32 deletions
56
.github/workflows/test-and-deploy.yml
vendored
56
.github/workflows/test-and-deploy.yml
vendored
|
|
@ -30,17 +30,15 @@ jobs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install setuptools
|
pip install poetry
|
||||||
pip install matplotlib
|
|
||||||
pip install pytest
|
|
||||||
|
|
||||||
- name: Install lib
|
- name: Install lib
|
||||||
run: |
|
run: |
|
||||||
python setup.py develop
|
poetry install
|
||||||
|
|
||||||
- name: pytest
|
- name: pytest
|
||||||
run: |
|
run: |
|
||||||
pytest GPy/testing
|
poetry run pytest
|
||||||
|
|
||||||
test-linux:
|
test-linux:
|
||||||
strategy:
|
strategy:
|
||||||
|
|
@ -59,17 +57,15 @@ jobs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install setuptools
|
pip install poetry
|
||||||
pip install matplotlib
|
|
||||||
pip install pytest
|
|
||||||
|
|
||||||
- name: Install lib
|
- name: Install lib
|
||||||
run: |
|
run: |
|
||||||
python setup.py develop
|
poetry install
|
||||||
|
|
||||||
- name: pytest
|
- name: pytest
|
||||||
run: |
|
run: |
|
||||||
pytest GPy/testing
|
poetry run pytest
|
||||||
test-macos:
|
test-macos:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -87,17 +83,15 @@ jobs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install setuptools
|
pip install poetry
|
||||||
pip install matplotlib
|
|
||||||
pip install pytest
|
|
||||||
|
|
||||||
- name: Install lib
|
- name: Install lib
|
||||||
run: |
|
run: |
|
||||||
python setup.py develop
|
poetry install
|
||||||
|
|
||||||
- name: pytest
|
- name: pytest
|
||||||
run: |
|
run: |
|
||||||
pytest GPy/testing
|
poetry run pytest
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
|
|
@ -117,11 +111,8 @@ jobs:
|
||||||
|
|
||||||
- name: Build lib
|
- name: Build lib
|
||||||
run: |
|
run: |
|
||||||
pip install setuptools
|
pip install poetry
|
||||||
pip install wheel
|
poetry build
|
||||||
python setup.py develop
|
|
||||||
python setup.py bdist_wheel
|
|
||||||
python setup.py sdist bdist_wheel
|
|
||||||
|
|
||||||
- name: List contents of dist
|
- name: List contents of dist
|
||||||
run: ls -R dist
|
run: ls -R dist
|
||||||
|
|
@ -150,10 +141,8 @@ jobs:
|
||||||
|
|
||||||
- name: Build lib
|
- name: Build lib
|
||||||
run: |
|
run: |
|
||||||
pip install setuptools
|
pip install poetry
|
||||||
pip install wheel
|
poetry build
|
||||||
python setup.py develop
|
|
||||||
python setup.py bdist_wheel
|
|
||||||
|
|
||||||
- name: List contents of dist
|
- name: List contents of dist
|
||||||
run: ls -R dist
|
run: ls -R dist
|
||||||
|
|
@ -177,15 +166,19 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install poetry
|
||||||
|
run: |
|
||||||
|
/opt/python/${{ matrix.python }}/bin/python -m pip install poetry
|
||||||
|
|
||||||
- name: Compile c headers
|
- name: Compile c headers
|
||||||
run: |
|
run: |
|
||||||
/opt/python/${{ matrix.python }}/bin/python setup.py develop
|
/opt/python/${{ matrix.python }}/bin/python -m poetry install
|
||||||
|
|
||||||
- name: Build wheel files
|
- name: Build wheel files
|
||||||
run: |
|
run: |
|
||||||
/opt/python/${{ matrix.python }}/bin/python setup.py bdist_wheel
|
/opt/python/${{ matrix.python }}/bin/python -m poetry build
|
||||||
|
|
||||||
- name: Install auditwheel # this should be available?!
|
- name: Install auditwheel
|
||||||
run: |
|
run: |
|
||||||
/opt/python/${{ matrix.python }}/bin/python -m pip install auditwheel
|
/opt/python/${{ matrix.python }}/bin/python -m pip install auditwheel
|
||||||
|
|
||||||
|
|
@ -253,8 +246,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
ls -R dist
|
ls -R dist
|
||||||
|
|
||||||
- name: Upload to PyPI using twine
|
- name: Upload to PyPI
|
||||||
run: twine upload --skip-existing dist/*
|
run: |
|
||||||
env:
|
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
|
||||||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
poetry publish
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue