-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b0003d
commit a257a75
Showing
2 changed files
with
60 additions
and
50 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,60 @@ | ||
name: CI/Deploy | ||
|
||
on: | ||
push: | ||
tags: ["v*"] | ||
|
||
jobs: | ||
|
||
unit: | ||
uses: ./.github/workflows/unit.yml | ||
|
||
notebooks: | ||
uses: ./.github/workflows/notebook_smoke.yml | ||
|
||
check_semantic_version_placeholder: | ||
name: Check semantic version placeholder exists in the __init__ | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Check lines exist | ||
run: | | ||
grep -x "__version__ = ... # semantic-version-placeholder" gpax/__init__.py | ||
build_and_publish: | ||
name: Upload release to PyPI | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/gpax | ||
permissions: | ||
id-token: write | ||
|
||
needs: | ||
- check_semantic_version_placeholder | ||
- unit | ||
- notebooks | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Build and apply version | ||
run: bash scripts/build_project.sh | ||
|
||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
# CURRENTLY USING TEST SERVER FOR NOW!!!! | ||
repository-url: https://test.pypi.org/legacy/ |
This file was deleted.
Oops, something went wrong.