From a7667698ff0f9db7b0ef3756d949523e1b52ecc0 Mon Sep 17 00:00:00 2001 From: Etienne Perot Date: Sun, 29 Sep 2024 21:02:59 -0700 Subject: [PATCH] Add Open WebUI test workflow. --- .github/workflows/openwebui-test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/openwebui-test.yml diff --git a/.github/workflows/openwebui-test.yml b/.github/workflows/openwebui-test.yml new file mode 100644 index 0000000..1634dda --- /dev/null +++ b/.github/workflows/openwebui-test.yml @@ -0,0 +1,26 @@ +name: Open WebUI test +on: + push: {} + pull_request: {} +jobs: + open_webui_test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.x" + - name: Check that open-webui files are up-to-date + run: | + python build/build_openwebui.py --mode=check + - name: Download Open WebUI container image + run: | + docker pull ghcr.io/open-webui/open-webui:main + - name: Run Open WebUI tool self-test + run: | + ./tests/openwebui/tools/run_code_test.sh + - name: Run Open WebUI function self-test + run: | + ./tests/openwebui/functions/run_code_test.sh