|
1 | | -name: Run tests, build docs, release to TestPyPI |
| 1 | +name: Run tests, build docs, publish to TestPyPI |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
|
26 | 26 | with: |
27 | 27 | fetch-depth: 0 |
28 | 28 | - name: Set up Python 3.8 |
29 | | - uses: actions/setup-python@v3 |
| 29 | + uses: actions/setup-python@v4 |
30 | 30 | with: |
31 | 31 | python-version: 3.8 |
32 | 32 | cache: 'pip' |
|
50 | 50 | with: |
51 | 51 | fetch-depth: 0 |
52 | 52 | - name: Set up Python 3.8 |
53 | | - uses: actions/setup-python@v3 |
| 53 | + uses: actions/setup-python@v4 |
54 | 54 | with: |
55 | 55 | python-version: 3.8 |
56 | 56 | cache: 'pip' |
|
64 | 64 | key: tox-${{ github.ref }}-${{ runner.os }}-${{ hashFiles('tox.ini') }} |
65 | 65 | path: .tox |
66 | 66 | - name: Build Docs |
67 | | - run: | |
68 | | - cp notebooks/*.ipynb docs/examples/ |
69 | | - tox -e docs |
| 67 | + run: tox -e docs |
70 | 68 | - name: Save built docs |
71 | 69 | uses: actions/upload-artifact@v3 |
72 | 70 | with: |
@@ -102,7 +100,7 @@ jobs: |
102 | 100 | with: |
103 | 101 | fetch-depth: 0 |
104 | 102 | - name: Set up Python 3.8 |
105 | | - uses: actions/setup-python@v3 |
| 103 | + uses: actions/setup-python@v4 |
106 | 104 | with: |
107 | 105 | python-version: 3.8 |
108 | 106 | cache: 'pip' |
@@ -132,9 +130,8 @@ jobs: |
132 | 130 | TWINE_USERNAME: __token__ |
133 | 131 | TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} |
134 | 132 | run: | |
135 | | - git config user.name "${{ env.GITHUB_BOT_USERNAME }}" |
136 | | - git config user.email "${{ env.GITHUB_BOT_EMAIL }}" |
137 | | - tox -e bump-dev-version-and-create-tag |
138 | | - git push |
139 | | - git push --tags |
| 133 | + set -x |
| 134 | + export CURRENT_VERSION=$(python setup.py --version) |
| 135 | + export BUILD_NUMBER=$GITHUB_RUN_NUMBER |
| 136 | + tox -e bump-dev-version |
140 | 137 | tox -e publish-test-package |
0 commit comments