-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 1.02 KB
/
main.yml
File metadata and controls
46 lines (40 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Main Workflow
on:
push:
branches:
- main
paths:
- "frontend/**"
- "backend/**"
- ".github/**"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run Linter
run: echo "Running linting checks..." # Currently dont have a linter
test:
runs-on: ubuntu-latest
env:
TEST_PIPELINE: "True"
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r backend/requirements.txt
- name: Run Tests
run: pytest
deploy_backend:
needs: [lint, test] # Deploy backend after lint and test
uses: ./.github/workflows/deploy.yml
secrets:
HEROKU_APP_NAME: ${{ secrets.HEROKU_APP_NAME }}
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}