Skip to content

Commit

Permalink
Cleanup the code
Browse files Browse the repository at this point in the history
Signed-off-by: Liora Milbaum <[email protected]>
  • Loading branch information
lmilbaum committed Apr 1, 2024
1 parent 1df04d2 commit ce53b12
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/chatbot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ on:
pull_request:
branches:
- main
# paths:
# - ./recipes/natural_language_processing/chatbot/**
# - .github/workflows/chatbot.yaml
push:
branches:
- main
# paths:
# - ./recipes/natural_language_processing/chatbot/**
# - .github/workflows/chatbot.yaml

env:
REGISTRY: ghcr.io
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/model_servers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ on:
pull_request:
branches:
- main
# paths:
# - ./model_servers/llamacpp_python/**
# - .github/workflows/model_servers.yaml
push:
branches:
- main
# paths:
# - ./model_servers/llamacpp_python/**
# - .github/workflows/model_servers.yaml

env:
REGISTRY: ghcr.io
Expand Down
3 changes: 0 additions & 3 deletions recipes/natural_language_processing/chatbot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ quadlet:

.PHONY: install
install:
# wget -qO- https://github.com/mozilla/geckodriver/releases/download/v0.34.0/geckodriver-v0.34.0-linux64.tar.gz | tar xvz
# sudo apt update
# sudo apt upgrade
wget https://www.slimjetbrowser.com/chrome/files/103.0.5060.53/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
wget https://chromedriver.storage.googleapis.com/103.0.5060.53/chromedriver_linux64.zip
Expand Down
12 changes: 3 additions & 9 deletions recipes/natural_language_processing/chatbot/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,12 @@ def pytest_addoption(parser):
pytest_container.add_logging_level_options(parser)

@pytest.fixture
def firefox_options(firefox_options):
firefox_options.headless = True
firefox_options.set_preference("webdriver.log.file", "/tmp/driver.log")
return firefox_options
def chrome_options(chrome_options):
chrome_options.add_argument("--headless")
return chrome_options

@pytest.fixture
def custom_selenium(selenium, firefox_options):
selenium.webdriver = webdriver.Firefox(firefox_options=firefox_options)
yield selenium
selenium.webdriver.quit()

@pytest.fixture
def chrome_options(chrome_options):
chrome_options.add_argument("--headless")
return chrome_options

0 comments on commit ce53b12

Please sign in to comment.