diff --git a/.github/workflows/django-backend-test.yml b/.github/workflows/django-backend-test.yml new file mode 100644 index 00000000..6cb94e92 --- /dev/null +++ b/.github/workflows/django-backend-test.yml @@ -0,0 +1,25 @@ +name: Django API service +on: + push: + branches: + - master + paths: + - 'packages/fkweb/**' +jobs: + test: + name: Unit test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r packages/fkweb/requirements-dev.txt + - name: Run tests + run: python manage.py test + working-directory: packages/fkweb diff --git a/.github/workflows/django-backend.yml b/.github/workflows/django-backend.yml index 2850976c..e15ca479 100644 --- a/.github/workflows/django-backend.yml +++ b/.github/workflows/django-backend.yml @@ -21,19 +21,3 @@ jobs: tag_with_ref: true path: packages/fkweb dockerfile: packages/fkweb/Dockerfile - test: - name: Unit test - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Set up Python 3.7 - uses: actions/setup-python@v1 - with: - python-version: 3.7 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r packages/fkweb/requirements-prod.txt - - name: Run tests - run: python packages/fkweb/manage.py test diff --git a/packages/fkweb/static/vod.css b/packages/fkweb/static/vod.css deleted file mode 100644 index 69d6054b..00000000 --- a/packages/fkweb/static/vod.css +++ /dev/null @@ -1,34 +0,0 @@ -.player-container { - padding: 0px 16px 16px 16px; - } - -.widget-container { - width: 640px; - float: left; - height: 360px; -} -.player { - height: 360px; - width: 100%; -} - -#player-error-container { - background-size: contain; - height: 360px; - overflow: auto; -} - -#player-error-message { - padding-top: 1em; - padding-bottom: 1em; - margin-top: 3em; - text-align: center; - color: white; - background-color: rgb(0,0,0); - background-color: rgba(0,0,0,0.7); -} - -#player-error-message h1 { - margin: 0; - font-size: 2em; -}