-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 1.25 KB
/
evaluate_in_production.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
46
47
48
49
50
51
52
name: Evaluate Predictions in Production
on:
workflow_dispatch:
#schedule:
# - cron: '0 0 * * *'
jobs:
evaluate-in-production:
runs-on: ubuntu-latest
outputs:
sha_new: ${{ steps.sha_new.outputs.SHA_NEW }}
permissions:
contents: write
env:
MONGO_URI: ${{ secrets.MONGO_URI }}
MONGO_DB_NAME: ${{ secrets.MONGO_DB_NAME }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: python -m pip install pandas dvc[s3] pymongo python-dotenv scikit-learn
- name: Authenticate dvc remote
run: |
dvc remote modify origin --local access_key_id "${{ secrets.DVC_ACCESS_KEY_ID }}"
dvc remote modify origin --local secret_access_key "${{ secrets.DVC_SECRET_ACCESS_KEY }}"
- name: Pull data from dvc
run: dvc pull
- name: Evaluate travel times
run: |
cd src/models/travel_times
python evaluate_prod.py
- name: Evaluate vehicle counters
run: |
cd src/models/vehicle_counters
python evaluate_prod.py