-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1781 from open-webui/dev
0.1.122
- Loading branch information
Showing
85 changed files
with
4,504 additions
and
877 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Integration Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
cypress-run: | ||
name: Run Cypress Integration Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build and run Compose Stack | ||
run: | | ||
docker compose up --detach --build | ||
- name: Preload Ollama model | ||
run: | | ||
docker exec ollama ollama pull qwen:0.5b-chat-v1.5-q2_K | ||
- name: Cypress run | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
browser: chrome | ||
wait-on: 'http://localhost:3000' | ||
config: baseUrl=http://localhost:3000 | ||
|
||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
name: Upload Cypress videos | ||
with: | ||
name: cypress-videos | ||
path: cypress/videos | ||
if-no-files-found: ignore | ||
|
||
- name: Extract Compose logs | ||
if: always() | ||
run: | | ||
docker compose logs > compose-logs.txt | ||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
name: Upload Compose logs | ||
with: | ||
name: compose-logs | ||
path: compose-logs.txt | ||
if-no-files-found: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,33 @@ | ||
|
||
ifneq ($(shell which docker-compose 2>/dev/null),) | ||
DOCKER_COMPOSE := docker-compose | ||
else | ||
DOCKER_COMPOSE := docker compose | ||
endif | ||
|
||
install: | ||
@docker-compose up -d | ||
$(DOCKER_COMPOSE) up -d | ||
|
||
remove: | ||
@chmod +x confirm_remove.sh | ||
@./confirm_remove.sh | ||
|
||
|
||
start: | ||
@docker-compose start | ||
$(DOCKER_COMPOSE) start | ||
startAndBuild: | ||
docker-compose up -d --build | ||
$(DOCKER_COMPOSE) up -d --build | ||
|
||
stop: | ||
@docker-compose stop | ||
$(DOCKER_COMPOSE) stop | ||
|
||
update: | ||
# Calls the LLM update script | ||
chmod +x update_ollama_models.sh | ||
@./update_ollama_models.sh | ||
@git pull | ||
@docker-compose down | ||
$(DOCKER_COMPOSE) down | ||
# Make sure the ollama-webui container is stopped before rebuilding | ||
@docker stop open-webui || true | ||
@docker-compose up --build -d | ||
@docker-compose start | ||
$(DOCKER_COMPOSE) up --build -d | ||
$(DOCKER_COMPOSE) start | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.