From 966e7fada1b8a7b7d2d06a6586f697d487a4ee2d Mon Sep 17 00:00:00 2001 From: diana-dutava Date: Wed, 22 Jan 2025 22:44:24 -0500 Subject: [PATCH] created ci workflow --- .github/workflows/workflow.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index e69de29..7e88796 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -0,0 +1,25 @@ +name: CI workflow +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + ci-job: + runs-on: ubuntu-latest + container: python:3.9-slim + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Lint with flake8 + run: | + flake8 service --count --select=E9,F63,F7,F82 --show-source --statistics + flake8 service --count --max-complexity=10 --max-line-length=127 --statistics + - name: Run unit tests with nose + run: nosetests -v --with-spec --spec-color --with-coverage --cover-package=app \ No newline at end of file