Merge pull request #119 from Hestia-Homes/feature/sureurve

Feature/sureurve
This commit is contained in:
Jun-te Kim 2025-12-04 20:26:56 +00:00 committed by GitHub
commit 0651e9e500
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 8 additions and 191 deletions

View file

@ -1,29 +0,0 @@
# name: Surveyed Needs Sign Off Script
# on:
# schedule:
# # - cron: '0 17 * * 1-5'
# workflow_dispatch:
# jobs:
# surveyed-needs-sign-off:
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v3
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.12'
# - name: Install dependencies
# run: |
# pip install poetry
# poetry install --no-root
# - name: run script
# run: |
# pwd
# ls -la
# poetry run python etl/hubspot_surveyed_needs_sign_off.py
# env:
# PYTHONPATH: ${{ github.workspace }}

View file

@ -21,14 +21,14 @@ jobs:
pip install poetry
poetry install --no-root
- name: Run scripts
env:
PYTHONPATH: ${{ github.workspace }}
DATABASE_URL: ${{ secrets.PROD_DATABASE_URL }}
run: |
pwd
ls -la
poetry run python etl/hubSpotClient/scripts/hubspot_abri_etl_first_time.py
# - name: Run scripts
# env:
# PYTHONPATH: ${{ github.workspace }}
# DATABASE_URL: ${{ secrets.PROD_DATABASE_URL }}
# run: |
# pwd
# ls -la
# poetry run python etl/hubSpotClient/scripts/hubspot_abri_etl_first_time.py
- name: Run scripts

View file

@ -1,37 +0,0 @@
# name: HubSpot Deals to DB loading and Invoice Calculator
# on:
# # schedule:
# # - cron: '0 19 * * 0'
# workflow_dispatch:
# jobs:
# hubspot-deals-to-db:
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v3
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.12'
# - name: Install dependencies
# run: |
# pip install poetry
# poetry install --no-root
# - name: run script
# run: |
# pwd
# ls -la
# poetry run python etl/hubspot_to_invoice_rewrite.py
# env:
# PYTHONPATH: ${{ github.workspace }}
# DATABASE_URL: postgresql://postgres:makingwarmhomes@terraform-20250331175522503500000002.cdgzupxvdyp0.eu-west-2.rds.amazonaws.com:5432/surveyDB
# SOUTH_COAST_INSULATION_SERVICE_SHAREPOINT_ID: ${{ secrets.SOUTH_COAST_INSULATION_SERVICE_SHAREPOINT_ID }}
# JJC_SERVICE_SHAREPOINT_ID: ${{ secrets.JJC_SERVICE_SHAREPOINT_ID }}
# BAXTER_KELLY_SERVICE_SHAREPOINT_ID: ${{ secrets.BAXTER_KELLY_SERVICE_SHAREPOINT_ID }}
# SGEC_SERVICE_SHAREPOINT_ID: ${{ secrets.SGEC_SERVICE_SHAREPOINT_ID }}
# SHAREPOINT_CLIENT_ID: ${{ secrets.SHAREPOINT_CLIENT_ID }}
# SHAREPOINT_CLIENT_SECRET: ${{ secrets.SHAREPOINT_CLIENT_SECRET }}
# SHAREPOINT_TENANT_ID: ${{ secrets.SHAREPOINT_TENANT_ID }}

View file

@ -1,42 +0,0 @@
# name: Run Pytest
# on:
# push:
# branches:
# - '**' # Run on all branches
# pull_request:
# branches:
# - main
# jobs:
# etl-unit-tests:
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v4
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.12'
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.12'
# - name: Install dependencies
# run: |
# pip install poetry
# poetry install --no-root
# - name: Run Tests
# run: |
# poetry run pytest -W ignore::DeprecationWarning
# env:
# PYTHONPATH: ${{ github.workspace }}
# continue-on-error: ${{ github.event_name == 'push' && github.ref != 'refs/heads/main' }}

View file

@ -1,39 +0,0 @@
# name: SCIS Invoice Calculator
# on:
# schedule:
# - cron: '0 6 * * *'
# workflow_dispatch:
# jobs:
# scis_invoice_calculator:
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v3
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.12'
# - name: Install dependencies
# run: |
# pip install poetry
# poetry install --no-root
# - name: run script
# run: |
# bash scis_invoice.sh
# env:
# PYTHONPATH: ${{ github.workspace }}
# SOUTH_COAST_INSULATION_SERVICE_SHAREPOINT_ID: ${{ secrets.SOUTH_COAST_INSULATION_SERVICE_SHAREPOINT_ID }}
# JJC_SERVICE_SHAREPOINT_ID: ${{ secrets.JJC_SERVICE_SHAREPOINT_ID }}
# BAXTER_KELLY_SERVICE_SHAREPOINT_ID: ${{ secrets.BAXTER_KELLY_SERVICE_SHAREPOINT_ID }}
# SGEC_SERVICE_SHAREPOINT_ID: ${{ secrets.SGEC_SERVICE_SHAREPOINT_ID }}
# SHAREPOINT_CLIENT_ID: ${{ secrets.SHAREPOINT_CLIENT_ID }}
# SHAREPOINT_CLIENT_SECRET: ${{ secrets.SHAREPOINT_CLIENT_SECRET }}
# SHAREPOINT_TENANT_ID: ${{ secrets.SHAREPOINT_TENANT_ID }}
# - name: Upload Excel file
# uses: actions/upload-artifact@v4
# with:
# name: my-excel-file
# path: survey_data.xlsx

View file

@ -1,36 +0,0 @@
# name: SharePoint Validator
# on:
# schedule:
# - cron: '0 6 * * *'
# workflow_dispatch:
# jobs:
# sharepoint-validator:
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v3
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.12'
# - name: Install dependencies
# run: |
# pip install poetry
# poetry install --no-root
# - name: run script
# run: |
# pwd
# ls -la
# bash run_daily_script.sh
# env:
# PYTHONPATH: ${{ github.workspace }}
# SOUTH_COAST_INSULATION_SERVICE_SHAREPOINT_ID: ${{ secrets.SOUTH_COAST_INSULATION_SERVICE_SHAREPOINT_ID }}
# JJC_SERVICE_SHAREPOINT_ID: ${{ secrets.JJC_SERVICE_SHAREPOINT_ID }}
# BAXTER_KELLY_SERVICE_SHAREPOINT_ID: ${{ secrets.BAXTER_KELLY_SERVICE_SHAREPOINT_ID }}
# SGEC_SERVICE_SHAREPOINT_ID: ${{ secrets.SGEC_SERVICE_SHAREPOINT_ID }}
# SHAREPOINT_CLIENT_ID: ${{ secrets.SHAREPOINT_CLIENT_ID }}
# SHAREPOINT_CLIENT_SECRET: ${{ secrets.SHAREPOINT_CLIENT_SECRET }}
# SHAREPOINT_TENANT_ID: ${{ secrets.SHAREPOINT_TENANT_ID }}