chore: update workflow (#124)

This commit is contained in:
Tuan Anh Nguyen Dang (Tadashi_Cin) 2024-08-26 09:52:16 +07:00 committed by GitHub
parent 2570e11501
commit bb56ef4f8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 6 deletions

2
.env
View File

@ -28,6 +28,8 @@ AZURE_DI_ENDPOINT=
AZURE_DI_CREDENTIAL= AZURE_DI_CREDENTIAL=
# settings for Adobe API # settings for Adobe API
# get free credential at https://acrobatservices.adobe.com/dc-integration-creation-app-cdn/main.html?api=pdf-extract-api
# also install pip install "pdfservices-sdk@git+https://github.com/niallcm/pdfservices-python-sdk.git@bump-and-unfreeze-requirements"
PDF_SERVICES_CLIENT_ID= PDF_SERVICES_CLIENT_ID=
PDF_SERVICES_CLIENT_SECRET= PDF_SERVICES_CLIENT_SECRET=

View File

@ -2,9 +2,9 @@ name: style-check
on: on:
pull_request: pull_request:
branches: [main] branches: [main, develop]
push: push:
branches: [main] branches: [main, develop]
jobs: jobs:
pre-commit: pre-commit:

View File

@ -11,7 +11,9 @@ env:
jobs: jobs:
unit-test: unit-test:
if: ${{ !cancelled() }} if: false # temporary disable this job due to legacy interface
#TODO: enable this job after the new interface is ready
# if: ${{ !cancelled() }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
timeout-minutes: 20 timeout-minutes: 20
defaults: defaults:

View File

@ -165,9 +165,11 @@ class BaseApp:
"""Called when the app is created""" """Called when the app is created"""
def make(self): def make(self):
external_js = """ external_js = (
<script type="module" src="https://cdn.skypack.dev/pdfjs-viewer-element"></script> "<script type='module' "
""" "src='https://cdn.skypack.dev/pdfjs-viewer-element'>"
"</script>"
)
with gr.Blocks( with gr.Blocks(
theme=self._theme, theme=self._theme,