feature-pipeline #32
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
name: ethereum-returns-feature-pipeline | |
on: | |
schedule: | |
# run at minute 0 of the 22nd hour (which is 10 PM UTC) every day, which corresponds to 5 PM EST. | |
- cron: '0 22 * * *' | |
workflow_dispatch: | |
env: | |
PYTHON_VERSION: 3.9 | |
jobs: | |
feature_pipeline: | |
runs-on: ubuntu-latest | |
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: Set up display environment | |
run: | | |
export DISPLAY=:99 | |
chromedriver --url-base=/wd/hub & | |
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements_feature_pipeline.txt | |
- name: Execute Python workflows from bash script | |
env: | |
HOPSWORKS_API_KEY: ${{ secrets.HOPSWORKS_API_KEY }} | |
HOPSWORKS_PROJECT_NAME: ${{ secrets.HOPSWORKS_PROJECT_NAME }} | |
run: jupyter nbconvert --to notebook --execute notebooks/04_feature_pipeline.ipynb |