[CDF-24184] 🚍 Strongly coupled views. (#1490) #1086
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: Deploy modules to demo project | |
on: | |
push: | |
branches: | |
- main | |
env: | |
PYTHON_VERSION: '3.10' | |
POETRY_VERSION: '2.0.1' | |
jobs: | |
build-modules: | |
runs-on: ubuntu-latest | |
environment: dev | |
env: | |
CDF_CLUSTER: ${{ secrets.CDF_CLUSTER }} | |
CDF_PROJECT: ${{ secrets.CDF_PROJECT }} | |
IDP_CLIENT_ID: ${{ secrets.IDP_CLIENT_ID }} | |
IDP_CLIENT_SECRET: ${{ secrets.IDP_CLIENT_SECRET }} | |
IDP_TOKEN_URL: ${{ secrets.IDP_TOKEN_URL }} | |
LOGIN_FLOW: client_credentials | |
name: Loadmaster | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- uses: snok/install-poetry@v1 | |
with: | |
version: ${{ env.POETRY_VERSION }} | |
virtualenvs-create: false | |
- name: Install dependencies and build the package | |
run: | | |
poetry sync | |
poetry build | |
- name: Install cdf-tk | |
run: pip install . | |
- name: Initialize project | |
run: cdf modules init demo_project --clean --all | |
- name: "Pre-processing for demo environment" | |
run: python ./demo/preproc.py | |
- name: "Not collect metrics" | |
run: cdf collect opt-out | |
- name: "Build the templates" | |
run: cdf build --env demo -o ./demo_project | |
- name: "Verify and create access rights" | |
run: cdf auth verify --no-prompt | |
- name: "Deploy the templates" | |
run: | | |
cdf deploy --env demo | |
- name: "Run transformations and other post-processing" | |
run: | | |
poetry run python ./demo/postproc.py |