Skip to content

Commit

Permalink
Update to latest cookiecutter
Browse files Browse the repository at this point in the history
  • Loading branch information
evamaxfield committed Mar 26, 2023
1 parent ea39954 commit 887392e
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 25 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/event-gather-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,19 @@ jobs:
process-events:
needs: [deploy-runner-on-gcp]
runs-on: [self-hosted, gcp-cdp-runner]
container:
image: ghcr.io/iterative/cml:0-dvc2-base1-gpu
options: --gpus all

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Check GPU Drivers
run: |
nvidia-smi
- name: Install Packages
run: |
Expand All @@ -63,8 +70,8 @@ jobs:
- name: Install Python Dependencies
run: |
cd python/
pip install --upgrade pip
pip install .
pip install 'faster-whisper @ git+https://github.com/guillaumekln/faster-whisper.git'
- name: Setup gcloud
uses: google-github-actions/setup-gcloud@v0
Expand All @@ -74,10 +81,11 @@ jobs:
export_default_credentials: true

- name: Dump Credentials to JSON
run: |
echo "$GOOGLE_CREDS" > python/google-creds.json
env:
GOOGLE_CREDS: ${{ secrets.GOOGLE_CREDENTIALS }}
uses: jsdaniell/[email protected]
with:
name: "google-creds.json"
json: ${{ secrets.GOOGLE_CREDENTIALS }}
dir: "python/"

- name: Gather and Process New Events - CRON
if: ${{ github.event_name == 'schedule' }}
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/event-index-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ jobs:
project_id: cdp-milwaukee-9f60e352
service_account_key: ${{ secrets.GOOGLE_CREDENTIALS }}
export_default_credentials: true

- name: Dump Credentials to JSON
run: |
echo "$GOOGLE_CREDS" > python/google-creds.json
env:
GOOGLE_CREDS: ${{ secrets.GOOGLE_CREDENTIALS }}
uses: jsdaniell/[email protected]
with:
name: "google-creds.json"
json: ${{ secrets.GOOGLE_CREDENTIALS }}
dir: "python/"

# Installs
- name: Install Python Dependencies
Expand Down Expand Up @@ -117,10 +119,11 @@ jobs:
service_account_key: ${{ secrets.GOOGLE_CREDENTIALS }}
export_default_credentials: true
- name: Dump Credentials to JSON
run: |
echo "$GOOGLE_CREDS" > python/google-creds.json
env:
GOOGLE_CREDS: ${{ secrets.GOOGLE_CREDENTIALS }}
uses: jsdaniell/[email protected]
with:
name: "google-creds.json"
json: ${{ secrets.GOOGLE_CREDENTIALS }}
dir: "python/"

# Installs
- name: Install Python Dependencies
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/process-special-event.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,19 @@ jobs:
process-events:
needs: [deploy-runner-on-gcp]
runs-on: [self-hosted, gcp-cdp-runner]
container:
image: ghcr.io/iterative/cml:0-dvc2-base1-gpu
options: --gpus all

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Check GPU Drivers
run: |
nvidia-smi
- name: Install Packages
run: |
Expand All @@ -54,8 +61,8 @@ jobs:
- name: Install Python Dependencies
run: |
cd python/
pip install --upgrade pip
pip install .
pip install 'faster-whisper @ git+https://github.com/guillaumekln/faster-whisper.git'
- name: Setup gcloud
uses: google-github-actions/setup-gcloud@v0
Expand All @@ -65,10 +72,11 @@ jobs:
export_default_credentials: true

- name: Dump Credentials to JSON
run: |
echo "$GOOGLE_CREDS" > python/google-creds.json
env:
GOOGLE_CREDS: ${{ secrets.GOOGLE_CREDENTIALS }}
uses: jsdaniell/[email protected]
with:
name: "google-creds.json"
json: ${{ secrets.GOOGLE_CREDENTIALS }}
dir: "python/"

- name: Dump Event Details to JSON
run: |
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/run-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ jobs:
export_default_credentials: true

- name: Dump Credentials to JSON
run: |
echo "$GOOGLE_CREDS" > python/google-creds.json
env:
GOOGLE_CREDS: ${{ secrets.GOOGLE_CREDENTIALS }}
uses: jsdaniell/[email protected]
with:
name: "google-creds.json"
json: ${{ secrets.GOOGLE_CREDENTIALS }}
dir: "python/"

- name: Run Command
if: ${{ github.event_name == 'workflow_dispatch' }}
Expand Down
2 changes: 1 addition & 1 deletion infra/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cdp-backend==4.0.8
cdp-backend==4.0.9
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from setuptools import find_packages, setup

requirements = [
"cdp-backend[pipeline]==4.0.8",
"cdp-backend[pipeline]==4.0.9",
"cdp-scrapers[milwaukee]",
]

Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"deploy": "gh-pages -d build"
},
"dependencies": {
"@councildataproject/cdp-frontend": "3.2.0",
"@councildataproject/cdp-frontend": "3.2.3",
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
Expand Down

0 comments on commit 887392e

Please sign in to comment.