Files
addon/.github/workflows/tests.yml
mac12m99 70c33ff7df ops
2020-07-25 15:03:16 +02:00

45 lines
1.2 KiB
YAML

# This is a basic workflow to help you get started with Actions
name: Test Suite
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
workflow_dispatch:
schedule:
- cron: '30 17 * * *'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
tests:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: 2.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sakee
pip install html-testRunner
- name: Run tests
run: |
export KODI_HOME=$GITHUB_WORKSPACE/tests/home
export KODI_INTERACTIVE=0
python tests.py
- uses: actions/upload-artifact@v2
with:
name: report
path: reports/report.html