Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nwaughachukwuma committed Nov 3, 2024
1 parent 9ada8c8 commit 85f5b80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/deploy_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,29 +55,9 @@ jobs:
TAG_BRANCH_NAME="${RAW##*/}"
echo "TAG_BRANCH_NAME=$TAG_BRANCH_NAME" >> $GITHUB_OUTPUT
test:
runs-on: ubuntu-latest
needs: prepare
timeout-minutes: 5
env:
VERSION: ${{ needs.prepare.outputs.VERSION }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip" # caching pip dependencies
check-latest: true

- run: pip install --force-reinstall -r requirements.txt
if: ${{ steps.setup-python.outputs.cache-hit != 'true' }}

- run: pip install -r requirements.txt
if: ${{ steps.setup-python.outputs.cache-hit == 'true' }}

deploy:
runs-on: ubuntu-latest
needs: [prepare, test]
needs: [prepare]
timeout-minutes: 10
env:
VERSION: ${{ needs.prepare.outputs.VERSION }}
Expand All @@ -89,8 +69,6 @@ jobs:
cache: "pip" # caching pip dependencies
check-latest: true

- run: pip install -r requirements.txt

- uses: google-github-actions/auth@v2
with:
credentials_json: "${{ secrets.GCP_SA_KEY }}"
Expand Down Expand Up @@ -131,7 +109,7 @@ jobs:
promote:
runs-on: ubuntu-latest
if: (needs.prepare.outputs.MAIN == 'true')
needs: [prepare, deploy, test]
needs: [prepare, deploy]
timeout-minutes: 2
steps:
- uses: google-github-actions/auth@v2
Expand Down
5 changes: 0 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ google-cloud-storage
google-api-python-client
google-generativeai

<<<<<<< HEAD
ruff
watchdog
setuptools
=======
watchdog
ruff
>>>>>>> origin/main

0 comments on commit 85f5b80

Please sign in to comment.