Skip to content

Commit 468d647

Browse files
committed
[actions] Run pytest via tox
We also remove the env var `COVERALLS_REPO_TOKEN`, so we test if coveralls is working with `gh-actions` Note: Since Python 2 it's almost at the end of his life we only perform the Python3 tests, but we still have the travis tests for Python 2
1 parent 3611a9e commit 468d647

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/push.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,16 @@ jobs:
3535
uses: actions/setup-python@v1.1.0
3636
with:
3737
python-version: ${{ matrix.python-version }}
38-
- name: Install dependencies
3938
run: |
4039
python -m pip install --upgrade pip
41-
pip install -U virtualenv pytest pytest-cov backports.tempfile pyOpenSSL coveralls
42-
pip install -e .
43-
- name: Tests
40+
pip install tox>=2.0 pyOpenSSL coveralls
41+
- name: Tox Python 3
42+
# ignores test_pythonpackage.py since it runs for too long
4443
run: |
45-
python -m pytest tests/ --ignore tests/test_pythonpackage.py --cov pythonforandroid/ --cov-branch
46-
- name: Coveralls
44+
tox -e py3 -- tests/ --ignore tests/test_pythonpackage.py
45+
- name: Send Coverage to coveralls
4746
run: |
48-
python -m coveralls
49-
env:
50-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
47+
coveralls
5148
5249
build:
5350
name: Build testapp

0 commit comments

Comments
 (0)