Skip to content

Commit

Permalink
update yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
shyanukant committed Jul 29, 2023
1 parent 59b728e commit 6a79f35
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/deploy_test.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,11 @@
name: Squib deploy and test
name: Squib deploy

on:
push:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Install Dependencies
run: pip install -r requirements.txt

- name: Set DATABASE_URL Environment Variable
run: |
echo "DATABASE_URL=${{ secrets.DATABASE_URL }}" >> $GITHUB_ENV
- name: Run Tests
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: python manage.py test

deploy:
needs: test # Wait for the 'test' job to complete before starting deployment
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6a79f35

Please sign in to comment.