Skip to content

Commit

Permalink
Update web-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacklyn22 authored May 1, 2024
1 parent bd777f6 commit 0229ae2
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/web-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,18 @@ jobs:
with:
python-version: '3.8'

- name: Change to web app directory
run: cd web-app
- name: List contents in web-app directory
run: ls -la web-app/

- name: Install dependencies
- name: Install dependencies, lint, test, and build in web-app
run: |
cd web-app
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with pylint
run: |
pip install pylint
pip install pylint pytest flask_testing
pylint --load-plugins=pylint_flask *.py
- name: Run tests
run: |
pip install pytest flask_testing
pytest
- name: Build Docker image
run: docker build . --file Dockerfile
docker build . --file Dockerfile
- name: Push Docker image
uses: docker/build-push-action@v2
Expand Down

0 comments on commit 0229ae2

Please sign in to comment.