Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin-Sun-tts committed Mar 20, 2024
1 parent e974dcd commit 9e67bd7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 23 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,24 @@
cf_space: ${{vars.ENVIRONMENT_NAME}}
cf_username: ${{secrets.CF_SERVICE_USER}}
cf_password: ${{secrets.CF_SERVICE_AUTH}}
- name: smoke test
uses: cloud-gov/cg-cli-tools@main
with:
command: cf run-task harvesting-logic -c "/home/vcap/app/scripts/smoke-test.py" --name smoke-test
cf_org: gsa-datagov
cf_space: ${{vars.ENVIRONMENT_NAME}}
cf_username: ${{secrets.CF_SERVICE_USER}}
cf_password: ${{secrets.CF_SERVICE_AUTH}}
- name: monitor task output
uses: cloud-gov/cg-cli-tools@main
with:
command: >
scripts/monitor-cf-logs.sh harvesting-logic smoke-test
cf_org: gsa-datagov
cf_space: ${{vars.ENVIRONMENT_NAME}}
cf_username: ${{secrets.CF_SERVICE_USER}}
cf_password: ${{secrets.CF_SERVICE_AUTH}}
# to-do
# - name: smoke test
# uses: cloud-gov/cg-cli-tools@main
# with:
# command: cf run-task harvesting-logic -c "/home/vcap/app/scripts/smoke-test.py" --name smoke-test
# cf_org: gsa-datagov
# cf_space: ${{vars.ENVIRONMENT_NAME}}
# cf_username: ${{secrets.CF_SERVICE_USER}}
# cf_password: ${{secrets.CF_SERVICE_AUTH}}
# - name: monitor task output
# uses: cloud-gov/cg-cli-tools@main
# with:
# command: >
# scripts/monitor-cf-logs.sh harvesting-logic smoke-test
# cf_org: gsa-datagov
# cf_space: ${{vars.ENVIRONMENT_NAME}}
# cf_username: ${{secrets.CF_SERVICE_USER}}
# cf_password: ${{secrets.CF_SERVICE_AUTH}}
- name: Create Issue if it fails 😢
if: ${{ failure() && github.ref == 'refs/heads/main' }}
uses: JasonEtco/create-an-issue@v2
Expand Down
6 changes: 0 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
# poetry not supported by cloud.gov, use this file instead for manually push

flask-migrate==4.0.7
flask-sqlalchemy==3.1.1
flask==3.0.2
psycopg2-binary==2.9.9
pytest==7.4.4
python-dotenv==1.0.1

0 comments on commit 9e67bd7

Please sign in to comment.