Skip to content

Commit

Permalink
Merge pull request #132 from GSA/fix-deployment-issues
Browse files Browse the repository at this point in the history
Fixes issues with cg deploy
  • Loading branch information
btylerburton authored Feb 6, 2025
2 parents 5bae7c2 + 5ea210c commit 4730927
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,17 @@ jobs:
- name: Install node.js
uses: actions/setup-node@v4
with:
node-version: "package.json"
node-version-file: "app/static/package.json"
- name: Build static assets
shell: bash
run: |
cd app/static
npm ci
npm run build
cd app/static
npm ci
npm run build
- name: Set up Python ${{ env.PY_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PY_VERSION }}
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
Expand All @@ -99,7 +103,7 @@ jobs:
- name: deploy DHL
uses: cloud-gov/cg-cli-tools@main
with:
command: cf push --vars-file vars.development.yml --strategy rolling --no-wait
command: cf push datagov-harvest-admin --vars-file vars.development.yml --strategy rolling --no-wait && cf push datagov-harvest-runner --vars-file vars.development.yml --strategy rolling --no-wait
cf_org: gsa-datagov
cf_space: ${{vars.ENVIRONMENT_NAME}}
cf_username: ${{secrets.CF_SERVICE_USER}}
Expand Down
2 changes: 1 addition & 1 deletion app/forms.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import re
import os
import re

from flask_wtf import FlaskForm
from wtforms import SelectField, StringField, TextAreaField
Expand Down
4 changes: 2 additions & 2 deletions app/routes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import csv
import json
import logging
import os
Expand All @@ -6,7 +7,6 @@
import uuid
from functools import wraps
from io import StringIO
import csv

import click
import jwt
Expand All @@ -17,12 +17,12 @@
from flask import (
Blueprint,
flash,
make_response,
redirect,
render_template,
request,
session,
url_for,
make_response,
)
from jinja2_fragments.flask import render_block

Expand Down

1 comment on commit 4730927

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Title Coverage Tests Skipped Failures Errors Time
Unit tests Coverage 39 0 💤 0 ❌ 0 🔥 1s ⏱️
Integration Tests Coverage 70 0 💤 0 ❌ 0 🔥 4.509s ⏱️
Functional Tests Coverage 2 0 💤 0 ❌ 0 🔥 8.793s ⏱️

Please sign in to comment.