File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 python -m pip install --upgrade pip
3131 pip install -r requirements.txt
3232
33- # Step 2: Linting
34- lint :
35- runs-on : ubuntu-latest
36- needs : build
37- defaults :
38- run :
39- working-directory : app
40- steps :
41- - name : Checkout code
42- uses : actions/checkout@v4
43-
44- - name : Install flake8
45- run : |
46- pip install flake8
47- flake8 . # Runs linter on all Python files
4833
49- # Step 3 : Testing
34+ # Step 2 : Testing
5035 test :
5136 runs-on : ubuntu-latest
5237 needs : build
@@ -63,10 +48,10 @@ jobs:
6348 pip install pytest
6449 pytest # Run all tests in app/
6550
66- # Step 4 : Docker image build and push (optional)
51+ # Step 3 : Docker image build and push (optional)
6752 docker :
6853 runs-on : ubuntu-latest
69- needs : [lint, test]
54+ needs : [ test]
7055 steps :
7156 - name : Checkout code
7257 uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments