Skip to content

Commit

Permalink
Run CI on Windows (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelarnauts authored Dec 17, 2020
1 parent 4b95ad9 commit f53466e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,39 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
include:
# Kodi Leia on Windows uses a bundled Python 2.7
- os: windows-latest
python-version: 2.7
# Kodi Matrix on Windows uses a bundled Python 3.8
- os: windows-latest
python-version: 3.8
- os: windows-latest
python-version: 3.9
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
- name: Install dependencies (linux)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install gettext
sudo pip install coverage --install-option="--install-scripts=/usr/bin"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run pylint
run: make check-pylint
- name: Run tox
run: make check-tox
- name: Check translations
if: matrix.os == 'ubuntu-latest'
run: make check-translations
- name: Run unit tests
run: coverage run -m unittest discover
Expand All @@ -46,5 +60,6 @@ jobs:
# ADDON_PASSWORD: ${{ secrets.ADDON_PASSWORD }}
# ADDON_USERNAME: ${{ secrets.ADDON_USERNAME }}
- name: Upload code coverage to CodeCov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v1
continue-on-error: true

0 comments on commit f53466e

Please sign in to comment.