Skip to content

Commit

Permalink
Modified the code to build and test and push image to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
SrikanthReddy12271 committed Jun 26, 2024
1 parent 526d916 commit 78764f6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/continuos-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt

- name: Build application
- name: Lint application
run: |
python app.py # Command to build/run your application
# Lint the application to catch syntax errors and style issues
flake8 app.py
test:
needs: build
Expand All @@ -43,7 +44,8 @@ jobs:

- name: Run tests
run: |
pytest test_app.py # Run your tests
# Run your tests using pytest
pytest test_app.py
push:
needs: test
Expand Down

0 comments on commit 78764f6

Please sign in to comment.