-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatic deployment to PyPI on release (#3)
* Use MDAnalysis deployment action * Updated docs to reflect PyPI installations
- Loading branch information
1 parent
3267dee
commit a93a301
Showing
5 changed files
with
86 additions
and
5 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,37 @@ | ||
name: Build and upload to PyPi | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
pypi_push: | ||
environment: deploy | ||
if: "github.repository == 'MDAnalysis/PathSimAnalysis'" | ||
name: Build, upload and test pure Python wheels | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: testpypi_deploy | ||
uses: MDAnalysis/pypi-deployment@main | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
with: | ||
token: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
test_submission: true | ||
tests: true | ||
test_deps: 'pytest MDAnalysisTests' | ||
package_name: 'pathsimanalysis' | ||
|
||
- name: pypi_deploy | ||
uses: MDAnalysis/pypi-deployment@main | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
with: | ||
token: ${{ secrets.PYPI_API_TOKEN }} | ||
package_name: 'pathsimanalysis' | ||
tests: false |
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