-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcachan_models_run_production.yml
More file actions
48 lines (36 loc) · 1.13 KB
/
cachan_models_run_production.yml
File metadata and controls
48 lines (36 loc) · 1.13 KB
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
name: cachan_models_run_production
on:
workflow_dispatch:
env:
DBNAME: ${{ secrets.CACHAN_DBNAME_PROD }}
HOST: ${{ secrets.HOST }}
PASSWORD: ${{ secrets.PASSWORD }}
PORT: ${{ secrets.PORT }}
TARGET_SCHEMA: ${{ secrets.SCHEMA_PROD }}
USER: ${{ secrets.USER }}
PARTICIPATION_HOST_NAME: ${{ secrets.CACHAN_PARTICIPATION_HOST_NAME }}
WORKING_DIRECTORY: ./projects/cachan
jobs:
cachan_models_run:
name: cachan_models_run_production
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12.x"
cache: 'pip'
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Run dbt deps
working-directory: ${{ env.WORKING_DIRECTORY }}
run: dbt deps --target prod
- name: Run dbt models
working-directory: ${{ env.WORKING_DIRECTORY }}
run: dbt run --target prod
- name: Test dbt models
working-directory: ${{ env.WORKING_DIRECTORY }}
run: dbt test --target prod