-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (35 loc) · 1.14 KB
/
cdc_models_run_preproduction.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
name: cdc_models_run_preproduction
on:
workflow_dispatch:
env:
DBNAME: ${{ secrets.COUR_DES_COMPTES_DBNAME_PROD }}
HOST_PREPROD: ${{ secrets.HOST_PREPROD }}
PASSWORD_PREPROD: ${{ secrets.PASSWORD_PREPROD }}
PORT_PREPROD: ${{ secrets.PORT_PREPROD }}
TARGET_SCHEMA: ${{ secrets.SCHEMA_PROD }}
USER_PREPROD: ${{ secrets.USER_PREPROD }}
PARTICIPATION_HOST_NAME: ${{ secrets.COUR_DES_COMPTES_PARTICIPATION_HOST_NAME }}
WORKING_DIRECTORY: ./projects/cour_des_comptes
jobs:
cdc_models_run_preproduction:
name: cdc_models_run_preproduction
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.WORKING_DIRECTORY }}
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
dbt deps --target preprod
- name: Run dbt models
run: dbt run --target preprod
- name: Test dbt models
run: dbt test --target preprod