Skip to content

Commit 099ae0e

Browse files
authored
Move more Travis jobs to GitHub Actions (#709)
* Add release job * Remove Travis configuration * Update docs
1 parent 87610d3 commit 099ae0e

File tree

3 files changed

+17
-28
lines changed

3 files changed

+17
-28
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,19 @@ jobs:
6767
run: python -m pip install tox
6868
- name: Build docs
6969
run: python -m tox -e docs
70+
71+
release:
72+
needs: [lint, types, test, docs]
73+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
74+
runs-on: ubuntu-latest
75+
steps:
76+
- uses: actions/checkout@v2
77+
- uses: actions/setup-python@v2
78+
with:
79+
python-version: 3.8
80+
- name: Install dependencies
81+
run: python -m pip install tox
82+
- name: Release
83+
run: tox -e release
84+
env:
85+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

docs/contributing.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ A checklist for creating, testing, and distributing a new version.
203203
#. Merge the pull request, and ensure the `GitHub Actions`_ build passes.
204204
#. Create a new git tag with ``git tag -m "Release v{version}" {version}``.
205205
#. Push the new tag with ``git push upstream {version}``.
206-
#. Watch the release in `Travis`_.
206+
#. Watch the release in `GitHub Actions`_.
207207
#. Send announcement email to `distutils-sig mailing list`_ and celebrate.
208208

209209

@@ -224,7 +224,6 @@ merge into a single tool; see `ongoing discussion
224224
.. _`tox`: https://tox.readthedocs.io/
225225
.. _`pytest`: https://docs.pytest.org/
226226
.. _`GitHub Actions`: https://github.com/pypa/twine/actions
227-
.. _`Travis`: https://travis-ci.com/github/pypa/twine
228227
.. _`isort`: https://timothycrosley.github.io/isort/
229228
.. _`black`: https://black.readthedocs.io/
230229
.. _`flake8`: https://flake8.pycqa.org/

0 commit comments

Comments
 (0)