Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
Signed-off-by: Anupam Kumar <[email protected]>
  • Loading branch information
kyteinsky committed Oct 4, 2024
1 parent f9dafd8 commit 2858bd9
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -137,15 +131,16 @@ 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
with:
repository: nextcloud/documentation
path: data/admin/files/documentation

# todo: text/rst
- name: Prepare docs
run: |
cd data/admin/files/documentation
Expand All @@ -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: |
Expand Down

0 comments on commit 2858bd9

Please sign in to comment.