Skip to content

Commit

Permalink
Changes on workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CastagnaIT committed Jul 15, 2021
1 parent 1eb757a commit fbe6c8a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 28 deletions.
38 changes: 10 additions & 28 deletions .github/workflows/addon-check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Kodi
name: Kodi Addon-Check
on:
push:
branches:
Expand All @@ -7,33 +7,15 @@ on:
branches:
- master
jobs:
tests:
name: Addon checker
kodi-addon-checker:
runs-on: ubuntu-latest
env:
PYTHONIOENCODING: utf-8
strategy:
fail-fast: false
matrix:
kodi-branch: [matrix]
name: Kodi addon checker
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
- name: Kodi addon checker validation
id: kodi-addon-checker
uses: xbmc/action-kodi-addon-checker@master
with:
path: ${{ github.repository }}
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
sudo apt-get install gettext
python -m pip install --upgrade pip
pip install kodi-addon-checker
- name: Checking language translations
run: make check-translations
working-directory: ${{ github.repository }}
- name: Remove unwanted files
run: awk '/export-ignore/ { print $1 }' .gitattributes | xargs rm -rf --
working-directory: ${{ github.repository }}
- name: Run kodi-addon-checker
run: kodi-addon-checker --branch=${{ matrix.kodi-branch }} ${{ github.repository }}/
kodi-version: matrix
addon-id: ${{ github.event.repository.name }}
32 changes: 32 additions & 0 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Translations
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
name: Check translations
runs-on: ubuntu-latest
env:
PYTHONIOENCODING: utf-8
strategy:
fail-fast: false
matrix:
kodi-branch: [matrix]
steps:
- uses: actions/checkout@v2
with:
path: ${{ github.repository }}
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
sudo apt-get install gettext
- name: Checking language translations
run: make check-translations
working-directory: ${{ github.repository }}

0 comments on commit fbe6c8a

Please sign in to comment.