-
Notifications
You must be signed in to change notification settings - Fork 40
46 lines (36 loc) · 1.31 KB
/
production-features-pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: production-features-pipeline
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
jobs:
scrape_features:
#runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.9.13'
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt.main
python -m pip install jupyter nbconvert nbformat scrapingant-client
- name: execute python workflows from notebook
env:
HOPSWORKS_API_KEY: ${{ secrets.HOPSWORKS_API_KEY }}
NEPTUNE_API_TOKEN: ${{ secrets.NEPTUNE_API_TOKEN }}
SCRAPINGANT_API_KEY: ${{ secrets.SCRAPINGANT_API_KEY }}
run:
jupyter nbconvert --to notebook --execute notebooks/09_production_features_pipeline.ipynb
- name: Commit and push changes
run: |
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
git add data/games.csv
git add data/games_engineered.csv
git commit -m "Update games_engineered.csv"
git push