diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 000000000000000..1168bd9ad833dbe --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,39 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python application + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest diff --git a/John Tran.csv b/John Tran.csv new file mode 100644 index 000000000000000..1f6ca4f7e7d196f --- /dev/null +++ b/John Tran.csv @@ -0,0 +1,13 @@ +"Created By","Title","Name","Relation","Phone" +"John Ngoc Tran","Relation","Ellyn Dang","Granddaughter", +"John Ngoc Tran","Relation","Felix","Grandson", +"John Ngoc Tran","Relation","Elaine Dang","Granddaughter","559-305-9988" +"John Ngoc Tran","Relation","Hoa Tran","Brother","559-341-5424" +"John Ngoc Tran","Relation","Chuc Tran","Brother","559-387-6128" +"John Ngoc Tran","Relation","Huu Tran","Brother","559-387-7782" +"John Ngoc Tran","Relation","Jocelyn Tran","Daughter","559-391-7996" +"John Ngoc Tran","Relation","Danny Dang","Son in law","559-391-7997" +"John Ngoc Tran","Relation","Binh Tran","Brother","559-701-5275" +"John Ngoc Tran","Relation","Evelyn Dang","Granddaughter","559-724-7565" +"John Ngoc Tran","Relaton","John Ngoc Tran","Father","916-588-7564" +"John Ngoc Tran","Relation","Ngan Nguyen","Wife","916-588-7569" diff --git a/glucose b/glucose new file mode 100644 index 000000000000000..8b137891791fe96 --- /dev/null +++ b/glucose @@ -0,0 +1 @@ + diff --git a/python-app.yml b/python-app.yml new file mode 100644 index 000000000000000..1168bd9ad833dbe --- /dev/null +++ b/python-app.yml @@ -0,0 +1,39 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python application + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest