Skip to content

Commit

Permalink
Merge pull request #1 from jasminhusadzic/main
Browse files Browse the repository at this point in the history
Update yml and chromedriver path
  • Loading branch information
sadovsd authored Apr 16, 2024
2 parents 06dcdd1 + d2750a5 commit f090318
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/feature_pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,26 @@ on:

env:
PYTHON_VERSION: 3.9

jobs:
feature_pipeline:
runs-on: ubuntu-latest

# services:
# selenium:
# image: selenium/standalone-chrome
# options: --shm-size=2gb

steps:
- uses: actions/checkout@v3

- name: Setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install Chrome and Chromedriver
uses: nanasess/setup-chromedriver@v2

- name: Install Chrome
run: |
sudo apt-get update
sudo apt-get install -y wget unzip
sudo apt-get install -y google-chrome-stable
- name: Install ChromeDriver
- name: Set up display environment
run: |
CHROME_VERSION=$(google-chrome --version | cut -f 3 -d ' ' | cut -d '.' -f 1)
wget -N https://chromedriver.storage.googleapis.com/$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION)/chromedriver_linux64.zip -P ~/
unzip ~/chromedriver_linux64.zip -d ~/
sudo mv -f ~/chromedriver /usr/local/bin/chromedriver
sudo chown root:root /usr/local/bin/chromedriver
sudo chmod 0755 /usr/local/bin/chromedriver
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
- name: Install Dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/load_transform_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_new_ethereum_ohlc():
chrome_options.add_experimental_option("prefs", {"download.default_directory": str(NEW_OHLC)})

# Set the path to Chromedriver
service = Service(executable_path="/path/to/chromedriver")
service = Service(executable_path="/usr/local/bin/chromedriver")
driver = webdriver.Chrome(service=service, options=chrome_options)

try:
Expand Down

0 comments on commit f090318

Please sign in to comment.