-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from JaxGaussianProcesses/jax_bump
Address Jax/Jaxlib `v0.4.x` compatibility, incorporate CircleCI testing workflows, incorporate versioneer.
- Loading branch information
Showing
18 changed files
with
3,124 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
python: circleci/python@2.1.1 | ||
codecov: codecov/codecov@3.2.2 | ||
|
||
jobs: | ||
build-and-test: | ||
docker: | ||
- image: cimg/python:3.8.0 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Update pip | ||
command: pip install --upgrade pip | ||
- python/install-packages: | ||
pkg-manager: pip-dist | ||
path-args: .[dev] | ||
- run: | ||
name: Run tests | ||
command: pytest --cov=./ --cov-report=xml | ||
- run: | ||
name: Upload tests to Codecov | ||
command: | | ||
curl -Os https://uploader.codecov.io/v0.1.0_4653/linux/codecov | ||
chmod +x codecov | ||
./codecov -t ${CODECOV_TOKEN} | ||
- codecov/upload: | ||
file: coverage.xml | ||
|
||
publish: | ||
docker: | ||
- image: cimg/python:3.9.0 | ||
steps: | ||
- checkout | ||
- run: | ||
name: init .pypirc | ||
command: | | ||
echo -e "[distutils]" >> ~/.pypirc | ||
echo -e "index-servers = " >> ~/.pypirc | ||
echo -e " pypi" >> ~/.pypirc | ||
echo -e " gpjax" >> ~/.pypirc | ||
echo -e "" >> ~/.pypirc | ||
echo -e "[pypi]" >> ~/.pypirc | ||
echo -e " username = thomaspinder" >> ~/.pypirc | ||
echo -e " password = $PYPI_TOKEN" >> ~/.pypirc | ||
echo -e "" >> ~/.pypirc | ||
echo -e "[gpjax]" >> ~/.pypirc | ||
echo -e " repository = https://upload.pypi.org/legacy/" >> ~/.pypirc | ||
echo -e " username = __token__" >> ~/.pypirc | ||
echo -e " password = $GPJAX_PYPI" >> ~/.pypirc | ||
- run: | ||
name: Build package | ||
command: | | ||
pip install -U twine | ||
python setup.py sdist bdist_wheel | ||
- run: | ||
name: Upload to PyPI | ||
command: twine upload dist/* -r gpjax --verbose | ||
|
||
publish-nightly: | ||
docker: | ||
- image: cimg/python:3.9.0 | ||
steps: | ||
- checkout | ||
- run: | ||
name: init .pypirc | ||
command: | | ||
echo -e "[distutils]" >> ~/.pypirc | ||
echo -e "index-servers = " >> ~/.pypirc | ||
echo -e " pypi" >> ~/.pypirc | ||
echo -e " gpjax-nightly" >> ~/.pypirc | ||
echo -e "" >> ~/.pypirc | ||
echo -e "[pypi]" >> ~/.pypirc | ||
echo -e " username = thomaspinder" >> ~/.pypirc | ||
echo -e " password = $PYPI_TOKEN" >> ~/.pypirc | ||
echo -e "" >> ~/.pypirc | ||
echo -e "[gpjax-nightly]" >> ~/.pypirc | ||
echo -e " repository = https://upload.pypi.org/legacy/" >> ~/.pypirc | ||
echo -e " username = __token__" >> ~/.pypirc | ||
echo -e " password = $GPJAX_NIGHTLY_PYPI" >> ~/.pypirc | ||
- run: | ||
name: Build package | ||
command: | | ||
pip install -U twine | ||
python setup.py sdist bdist_wheel | ||
environment: | ||
BUILD_GPJAX_NIGHTLY: 'nightly' | ||
- run: | ||
name: Upload to PyPI | ||
command: twine upload dist/* -r gpjax-nightly --verbose | ||
|
||
workflows: | ||
main: | ||
jobs: | ||
- build-and-test: | ||
filters: # required since `deploy` has tag filters AND requires `build` | ||
tags: | ||
only: /.*/ | ||
- publish: | ||
requires: | ||
- build-and-test | ||
filters: | ||
tags: | ||
only: /^v.*/ # Only run on tags starting with v | ||
branches: | ||
ignore: /.*/ | ||
nightly: | ||
triggers: | ||
- schedule: | ||
cron: "0 0 * * *" | ||
filters: | ||
branches: | ||
only: | ||
- main | ||
jobs: | ||
- publish-nightly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gpjax/_version.py export-subst |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ ignore: | |
- "*/tests/.*" | ||
- "__init__.py" | ||
- "tests/*.py" | ||
- "*/_version.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.