prova push report sul sito
This commit is contained in:
+20
-15
@@ -8,21 +8,26 @@ jobs:
|
|||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
export PYTHONPATH=$GITHUB_WORKSPACE
|
export KODI_INTERACTIVE=0
|
||||||
export KODI_INTERACTIVE=0
|
./tests/run.sh
|
||||||
./tests/run.sh
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- name: Commit & Push changes
|
||||||
with:
|
uses: cpina/github-action-push-to-another-repository@cp_instead_of_deleting
|
||||||
name: report
|
env:
|
||||||
path: reports/report.html
|
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
||||||
|
with:
|
||||||
|
source-directory: "reports"
|
||||||
|
destination-github-username: "kodiondemand"
|
||||||
|
destination-repository-name: "kodiondemand.github.io"
|
||||||
|
user-email: "tests@kod.bot"
|
||||||
|
commit-message: "Test suite"
|
||||||
@@ -7,6 +7,7 @@
|
|||||||
# export KOD_TST_CH=channel
|
# export KOD_TST_CH=channel
|
||||||
# python tests/test_generic.py
|
# python tests/test_generic.py
|
||||||
import html
|
import html
|
||||||
|
import json
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
@@ -216,7 +217,7 @@ logger.record = False
|
|||||||
|
|
||||||
from specials import news
|
from specials import news
|
||||||
dictNewsChannels, any_active = news.get_channels_list()
|
dictNewsChannels, any_active = news.get_channels_list()
|
||||||
print(channels)
|
json.dump(channels, open(os.path.join(os.getcwd(), 'reports', 'result.json')))
|
||||||
# only 1 server item for single server
|
# only 1 server item for single server
|
||||||
serverNames = []
|
serverNames = []
|
||||||
serversFinal = []
|
serversFinal = []
|
||||||
|
|||||||
Reference in New Issue
Block a user