From 0229ae21c8a0fde278e097aa4ff0535204ee5468 Mon Sep 17 00:00:00 2001 From: Jacklyn22 <158542446+Jacklyn22@users.noreply.github.com> Date: Wed, 1 May 2024 16:37:22 -0400 Subject: [PATCH] Update web-app.yml --- .github/workflows/web-app.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/web-app.yml b/.github/workflows/web-app.yml index cd3646a..fcb7fdd 100644 --- a/.github/workflows/web-app.yml +++ b/.github/workflows/web-app.yml @@ -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