diff options
author | Jannis Leidel <jannis@leidel.info> | 2020-11-23 11:14:34 +0100 |
---|---|---|
committer | Claude Paroz <claude@2xlibre.net> | 2020-11-23 13:14:21 +0100 |
commit | dc1729fc6fa75c922ab738b361b03918b4b775b2 (patch) | |
tree | a6a53fbaf328489fbe301da2bb7821f6303ffe3f | |
parent | 3dc62685f8af61eb0987f114adf383606c67f3fa (diff) | |
download | tablib-dc1729fc6fa75c922ab738b361b03918b4b775b2.tar.gz |
Move releases to GitHub actions.
-rw-r--r-- | .github/workflows/release.yml | 56 | ||||
-rw-r--r-- | .travis.yml | 19 | ||||
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | RELEASING.md | 6 | ||||
-rw-r--r-- | docs/development.rst | 6 |
5 files changed, 62 insertions, 26 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7950b09 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,56 @@ +name: Release + +on: + push: + branches: + - master + release: + types: + - published + +jobs: + build: + if: github.repository == 'jazzband/tablib' + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache + uses: actions/cache@v2 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: release-${{ hashFiles('**/setup.py') }} + restore-keys: | + release- + + - name: Install dependencies + run: | + python -m pip install -U pip + python -m pip install -U setuptools twine wheel + + - name: Build package + run: | + python setup.py --version + python setup.py sdist --format=gztar bdist_wheel + twine check dist/* + + - name: Upload packages to Jazzband + if: github.event.action == 'published' + uses: pypa/gh-action-pypi-publish@master + with: + user: jazzband + password: ${{ secrets.JAZZBAND_RELEASE_KEY }} + repository_url: https://jazzband.co/projects/tablib/upload diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a513582..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: python -cache: pip -python: 3.7 - -install: travis_retry pip install tox-travis - -script: tox - -deploy: - provider: pypi - user: jazzband - server: https://jazzband.co/projects/tablib/upload - distributions: sdist bdist_wheel - password: - secure: svV4fYtodwW+iTyFOm5ISEfhVwcA+6vTskD3x6peznc40TdMV9Ek8nT3Q/NB4lCbXoUw2qR4H6uhLCjesnv/VvVk/qbitCyD8ySlgwOV5n7NzJs8lC8EYaHSjGQjatTwJAokfGVYkPawkI7HXDqtDggLUQBK+Ag8HDW+XBSbQIU= - on: - tags: true - repo: jazzband/tablib - python: 3.7 @@ -4,7 +4,6 @@ [](https://pypi.org/project/tablib/) [](https://pypi.org/project/tablib/) [](https://pypistats.org/packages/tablib) -[](https://travis-ci.org/jazzband/tablib) [](https://github.com/jazzband/tablib/actions) [](https://codecov.io/gh/jazzband/tablib) [](LICENSE) diff --git a/RELEASING.md b/RELEASING.md index 222abca..d69319f 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -3,9 +3,9 @@ Jazzband guidelines: https://jazzband.co/about/releases * [ ] Get master to the appropriate code release state. - [Travis CI](https://travis-ci.org/jazzband/tablib) + [GitHub Actions](https://github.com/jazzband/tablib/actions) should pass on master. - [](https://travis-ci.org/jazzband/tablib) + [](https://github.com/jazzband/tablib/actions) * [ ] Check [HISTORY.md](https://github.com/jazzband/tablib/blob/master/HISTORY.md), update version number and release date @@ -16,7 +16,7 @@ git tag -a v0.14.0 -m v0.14.0 git push --tags ``` -* [ ] Once Travis CI has built and uploaded distributions, check files at +* [ ] Once GitHub Actions has built and uploaded distributions, check files at [Jazzband](https://jazzband.co/projects/tablib) and release to [PyPI](https://pypi.org/pypi/tablib) diff --git a/docs/development.rst b/docs/development.rst index b8070cc..de8bdd3 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -163,16 +163,16 @@ the easiest way to test your changes for potential issues is to simply run the t Continuous Integration ---------------------- -Every pull request is automatically tested and inspected upon receipt with `Travis CI`_. +Every pull request is automatically tested and inspected upon receipt with `GitHub Actions`_. If you broke the build, you will receive an email accordingly. Anyone may view the build status and history at any time. - https://travis-ci.org/jazzband/tablib + https://github.com/jazzband/tablib/actions Additional reports will also be included here in the future, including :pep:`8` checks and stress reports for extremely large datasets. -.. _`Travis CI`: https://travis-ci.org/ +.. _`GitHub Actions`: https://github.com/jazzband/tablib/actions .. _docs: |