1- name : " Autorelease"
1+ # Vendored from Autorelease 0.5.1
2+ # Update by updating Autorelease and running `autorelease vendor actions`
3+ name : " Autorelease testpypi"
24on :
35 pull_request :
46 branches :
7+ # TODO: this should come from yaml conf
58 - stable
69
710defaults :
@@ -10,6 +13,7 @@ defaults:
1013
1114jobs :
1215 deploy_testpypi :
16+ if : ${{ github.repository == 'openpathsampling/openpathsampling-cli' }}
1317 runs-on : ubuntu-latest
1418 name : " Deployment test"
1519 steps :
@@ -22,10 +26,14 @@ jobs:
2226 if [ -f "autorelease-env.sh" ]; then
2327 cat autorelease-env.sh >> $GITHUB_ENV
2428 fi
25- eval $INSTALL_AUTORELEASE
29+ if [ -f "./.autorelease/install-autorelease" ]; then
30+ source ./.autorelease/install-autorelease
31+ else
32+ eval $INSTALL_AUTORELEASE
33+ fi
2634 name: "Install autorelease"
2735 - run : |
28- python -m pip install twine wheel
36+ python -m pip install twine wheel setuptools
2937 name: "Install release tools"
3038 - run : |
3139 bump-dev-version
4149 repository_url : https://test.pypi.org/legacy/
4250 name : " Deploy to testpypi"
4351 test_testpypi :
52+ if : ${{ github.repository == 'openpathsampling/openpathsampling-cli' }}
4453 runs-on : ubuntu-latest
4554 name : " Test deployed"
4655 needs : deploy_testpypi
5463 if [ -f "autorelease-env.sh" ]; then
5564 cat autorelease-env.sh >> $GITHUB_ENV
5665 fi
57- eval $INSTALL_AUTORELEASE
66+ if [ -f "./.autorelease/install-autorelease" ]; then
67+ source ./.autorelease/install-autorelease
68+ else
69+ eval $INSTALL_AUTORELEASE
70+ fi
5871 name: "Install autorelease"
59- - run : test-testpypi
60-
72+ - name : " Install testpypi version"
73+ run : install-testpypi
74+ - name : " Test testpypi version"
75+ run : |
76+ if [ -f "autorelease-env.sh" ]; then
77+ cat autorelease-env.sh >> $GITHUB_ENV
78+ fi
79+ test-testpypi
0 commit comments