diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index c232a5b..aa22543 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -80,12 +80,6 @@ jobs: with: path: apps/${{ env.APP_NAME }} - - name: Checkout AppAPI - uses: actions/checkout@v4 - with: - repository: cloud-py-api/app_api - path: apps/app_api - - name: Checkout backend uses: actions/checkout@v4 with: @@ -137,8 +131,8 @@ jobs: ./occ maintenance:install --verbose --database=${{ matrix.databases }} --database-name=nextcloud --database-host=127.0.0.1 --database-port=$PGSQL_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password composer run serve & - - name: Enable app and app_api - run: ./occ app:enable -vvv -f ${{ env.APP_NAME }} app_api + - name: Enable context_chat and testing + run: ./occ app:enable -vvv -f ${{ env.APP_NAME }} testing - name: Checkout documentation uses: actions/checkout@v4 @@ -146,6 +140,7 @@ jobs: repository: nextcloud/documentation path: data/admin/files/documentation + # todo: text/rst - name: Prepare docs run: | cd data/admin/files/documentation @@ -161,18 +156,21 @@ jobs: - name: Install and init backend run: | + echo 'Installing backend version ${{ fromJson(steps.appinfo.outputs.result).version }}' cd context_chat_backend pip install --upgrade pip setuptools wheel pip install --no-deps -r requirements.txt cp example.env .env echo "NEXTCLOUD_URL=http://localhost:8080" >> .env - sed -i 's/disable_aaa: false/disable_aaa: true/' config.cpu.yaml ./main.py &> backend_logs & - name: Register backend run: | + set -x + ./occ config:system:set debug --value true + ./occ config:system:set loglevel --value 0 ./occ app_api:daemon:register --net host manual_install "Manual Install" manual-install http localhost http://localhost:8080 - ./occ app_api:app:register context_chat_backend manual_install --json-info "{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"${{ fromJson(steps.appinfo.outputs.result).version }}\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" --force-scopes --wait-finish + timeout 120 ./occ app_api:app:register context_chat_backend manual_install --json-info "{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"${{ fromJson(steps.appinfo.outputs.result).version }}\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" --force-scopes --wait-finish - name: Scan files run: |