-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GitHub actions for CI testing (#702)
This PR includes: - Add a GitHub Actions workflow for CI testing - Remove Travis CI support - Move test/ to tests/ (unittest standard?) - Fix a coloring issue in xbmcextra - Various new fixes to tracebacks in GitHub CI
- Loading branch information
Showing
41 changed files
with
153 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- tests-overhaul | ||
pull_request: | ||
branches: | ||
- master | ||
- tests-overhaul | ||
jobs: | ||
tests: | ||
name: Add-on testing | ||
runs-on: ubuntu-latest | ||
env: | ||
PYTHONIOENCODING: utf-8 | ||
PYTHONPATH: ${{ github.workspace }}/resources/lib:${{ github.workspace }}/tests | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# max-parallel: 2 | ||
python-version: [ 2.7, 3.5, 3.6, 3.7, 3.8 ] | ||
steps: | ||
- name: Check out ${{ github.sha }} from repository ${{ github.repository }} | ||
uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install gettext | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Run tox | ||
run: python -m tox -q | ||
- name: Run pylint | ||
run: python -m pylint resources/lib/ tests/ | ||
- name: Compare translations | ||
run: make check-translations | ||
# Python 2.7 and Python 3.5 are no longer supported by proxy.py | ||
- name: Start proxy server, when supported | ||
run: python -m proxy --hostname 127.0.0.1 --log-level DEBUG & | ||
# if: contains([ '3.6', '3.7', '3.8' ], matrix.python-version) | ||
if: matrix.python-version == '3.6' || matrix.python-version == '3.7' || matrix.python-version == '3.8' | ||
- name: Run unit tests | ||
run: coverage run -m unittest discover | ||
env: | ||
ADDON_PASSWORD: ${{ secrets.ADDON_PASSWORD }} | ||
ADDON_USERNAME: ${{ secrets.ADDON_USERNAME }} | ||
- name: Run addon service | ||
run: coverage run resources/lib/service_entry.py | ||
- name: Run addon using cli | ||
run: coverage run tests/run.py / | ||
- name: Upload code coverage | ||
uses: codecov/codecov-action@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ coverage: | |
patch: false | ||
comment: false | ||
ignore: | ||
- test/ | ||
- tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.