Skip to content

Commit 1d8f773

Browse files
authored
Drop travis-ci.org and use github-actions for pypi release (#2487)
* Drop travis-ci.org and use github-actions for pypi release * Bump gh-action-pypi-publish to v1.4.2
1 parent 1ca2f8c commit 1d8f773

File tree

10 files changed

+39
-84
lines changed

10 files changed

+39
-84
lines changed

.env

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# used by coveralls.io, refs:
2-
# https://coveralls-python.readthedocs.io/en/latest/usage/tox.html#travisci
2+
# https://coveralls-python.readthedocs.io/en/latest/usage/tox.html#github-actions
33
CI
4-
TRAVIS
5-
TRAVIS_BRANCH
6-
TRAVIS_JOB_ID
7-
TRAVIS_PULL_REQUEST
4+
GITHUB_ACTIONS
5+
GITHUB_REF
6+
GITHUB_SHA
7+
GITHUB_HEAD_REF
8+
GITHUB_REPOSITORY
9+
GITHUB_RUN_ID
10+
GITHUB_TOKEN

.github/workflows/pypi-release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: PyPI release
2+
on: [push]
3+
4+
jobs:
5+
pypi_release:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: Set up Python 3.x
10+
uses: actions/setup-python@v2
11+
with:
12+
python-version: 3.x
13+
- name: Install dependencies
14+
run: |
15+
python -m pip install --upgrade setuptools wheel twine
16+
- name: Build
17+
run: |
18+
python setup.py sdist bdist_wheel
19+
twine check dist/*
20+
- name: Publish package
21+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
22+
uses: pypa/[email protected]
23+
with:
24+
user: __token__
25+
password: ${{ secrets.pypi_password }}

.travis.yml

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

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
python-for-android
22
==================
33

4-
[![Build Status](https://travis-ci.org/kivy/python-for-android.svg?branch=develop)](https://travis-ci.org/kivy/python-for-android)
54
[![Unit tests & build apps](https://github.com/kivy/python-for-android/workflows/Unit%20tests%20&%20build%20apps/badge.svg?branch=develop)](https://github.com/kivy/python-for-android/actions?query=workflow%3A%22Unit+tests+%26+build+apps%22)
65
[![Coverage Status](https://coveralls.io/repos/github/kivy/python-for-android/badge.svg?branch=develop&kill_cache=1)](https://coveralls.io/github/kivy/python-for-android?branch=develop)
76
[![Backers on Open Collective](https://opencollective.com/kivy/backers/badge.svg)](#backers)

doc/source/contribute.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ Release checklist
7070
::
7171

7272
- [ ] Check that the builds are passing
73-
- [ ] [Travis build](https://travis-ci.org/kivy/python-for-android)
7473
- [ ] [GitHub Action](https://github.com/kivy/python-for-android/actions)
75-
- [ ] Run the tests locally via `tox`: this performs some long-running tests that are skipped on Travis.
74+
- [ ] Run the tests locally via `tox`: this performs some long-running tests that are skipped on github-actions.
7675
- [ ] Build and run the [on_device_unit_tests](https://github.com/kivy/python-for-android/tree/master/testapps/on_device_unit_tests) app using buildozer. Check that they all pass.
7776
- [ ] Build (or download from github actions) and run the following [testapps](https://github.com/kivy/python-for-android/tree/master/testapps/on_device_unit_tests) for arch `armeabi-v7a` and `arm64-v8a`:
7877
- [ ] on_device_unit_tests

doc/source/docker.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ using headless VirtualBox and a small distro to run itself on.
99

1010
While this is not the actively supported way to build applications, if you are
1111
willing to play with the approach, you can use the ``Dockerfile`` to build
12-
the Docker image we use in ``.travis.yml`` for CI builds and create an Android
12+
the Docker image we use for CI builds and create an Android
1313
application with that in a container. This approach allows you to build Android
1414
applications on all platforms Docker engine supports. These steps assume you
1515
already have Docker preinstalled and set up.

pythonforandroid/recipes/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def get_recipe_env(self, arch=None, with_flags_in_cc=True):
120120
# we have the proper package already downloaded, it will use the cached
121121
# package to successfully finish the installation.
122122
# Note: this may not be necessary for some local systems, but it is
123-
# for our CI providers: `gh-actions` and travis, which will
123+
# for our CI provider: `gh-actions`, which will
124124
# fail trying to download the `jquery-ui` package
125125
env['XDG_CACHE_HOME'] = join(self.get_build_dir(arch), 'p4a_files')
126126
# we make use of the same directory than `XDG_CACHE_HOME`, for our

tests/test_pythonpackage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
THESE TESTS DON'T RUN IN TRAVIS (takes too long!!)
2+
THESE TESTS DON'T RUN IN GITHUB-ACTIONS (takes too long!!)
33
ONLY THE BASIC ONES IN test_pythonpackage_basic.py DO.
44
55
(This file basically covers all tests for any of the

tests/test_pythonpackage_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
ONLY BASIC TEST SET. The additional ones are in test_pythonpackage.py.
33
4-
These are in a separate file because these were picked to run in travis,
4+
These are in a separate file because these were picked to run in github-actions,
55
while the other additional ones aren't (for build time reasons).
66
"""
77

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ deps =
1010
# posargs will be replaced by the tox args, so you can override pytest
1111
# args e.g. `tox -- tests/test_graph.py`
1212
commands = pytest {posargs:tests/}
13-
passenv = TRAVIS TRAVIS_*
13+
passenv = GITHUB_*
1414
setenv =
1515
PYTHONPATH={toxinidir}
1616

0 commit comments

Comments
 (0)