From 71082f1bf8a72e924b9843dc1cf1ad32fe0ef39f Mon Sep 17 00:00:00 2001 From: Shivanirathod126 <110033777+Shivanirathod126@users.noreply.github.com> Date: Sat, 30 Jul 2022 14:11:05 +0530 Subject: [PATCH 1/8] test.yml --- .github/workflows/test.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..a5080cf --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +# This is a basic workflow to help you get started with Actions + +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - name: set up Python 3.8 + uses: actions/setup-python@v3 + with: + python-version: "3.8" + + # Runs a single command using the runners shell + - name: install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest From 532ac5f78019b70a120b6079ea0ad49e40fb2219 Mon Sep 17 00:00:00 2001 From: Shivanirathod126 <110033777+Shivanirathod126@users.noreply.github.com> Date: Sat, 30 Jul 2022 14:16:07 +0530 Subject: [PATCH 2/8] t1.yml --- .github/workflows/t1.yml | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/t1.yml diff --git a/.github/workflows/t1.yml b/.github/workflows/t1.yml new file mode 100644 index 0000000..dfd1fe8 --- /dev/null +++ b/.github/workflows/t1.yml @@ -0,0 +1,46 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - name: set up Python 3.8 + uses: actions/setup-python@v3 + with: + python-version: "3.8" + + # Runs a single command using the runners shell + - name: install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + # Runs a set of commands using the runners shell + - 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 From bd7bc327d3f2842e7efd5bbedecd1e4055263aa3 Mon Sep 17 00:00:00 2001 From: Shivanirathod126 <110033777+Shivanirathod126@users.noreply.github.com> Date: Sat, 30 Jul 2022 14:22:41 +0530 Subject: [PATCH 3/8] t3.yml --- .github/workflows/t3.yml | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/t3.yml diff --git a/.github/workflows/t3.yml b/.github/workflows/t3.yml new file mode 100644 index 0000000..c8f3e7c --- /dev/null +++ b/.github/workflows/t3.yml @@ -0,0 +1,46 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - name: set up Python 3.8 + uses: actions/setup-python@v3 + with: + python-version: "3.8" + + # Runs a single command using the runners shell + - name: install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + # Runs a set of commands using the runners shell + - 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: | + pipenv run pytest From e4bb1bb78d4ed4eab3f52890bd3eb2a71cb54b6a Mon Sep 17 00:00:00 2001 From: Shivanirathod126 <110033777+Shivanirathod126@users.noreply.github.com> Date: Sat, 30 Jul 2022 20:44:19 +0530 Subject: [PATCH 4/8] Delete test.yml --- .github/workflows/test.yml | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index a5080cf..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,38 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -# This is a basic workflow to help you get started with Actions - -name: CI - -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the "main" branch - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 - - name: set up Python 3.8 - uses: actions/setup-python@v3 - with: - python-version: "3.8" - - # Runs a single command using the runners shell - - name: install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest From 5648f6392977d6e922a49696b8c5b6c1aeb4a612 Mon Sep 17 00:00:00 2001 From: Shivanirathod126 <110033777+Shivanirathod126@users.noreply.github.com> Date: Sat, 30 Jul 2022 20:45:20 +0530 Subject: [PATCH 5/8] Delete t1.yml --- .github/workflows/t1.yml | 46 ---------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 .github/workflows/t1.yml diff --git a/.github/workflows/t1.yml b/.github/workflows/t1.yml deleted file mode 100644 index dfd1fe8..0000000 --- a/.github/workflows/t1.yml +++ /dev/null @@ -1,46 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: CI - -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the "main" branch - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 - - name: set up Python 3.8 - uses: actions/setup-python@v3 - with: - python-version: "3.8" - - # Runs a single command using the runners shell - - name: install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest - # Runs a set of commands using the runners shell - - 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 From 6dc8e9f57c10b3ce6bd0eef712376a128deccb10 Mon Sep 17 00:00:00 2001 From: Shivanirathod126 <110033777+Shivanirathod126@users.noreply.github.com> Date: Sat, 30 Jul 2022 20:45:34 +0530 Subject: [PATCH 6/8] Delete t3.yml --- .github/workflows/t3.yml | 46 ---------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 .github/workflows/t3.yml diff --git a/.github/workflows/t3.yml b/.github/workflows/t3.yml deleted file mode 100644 index c8f3e7c..0000000 --- a/.github/workflows/t3.yml +++ /dev/null @@ -1,46 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: CI - -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the "main" branch - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 - - name: set up Python 3.8 - uses: actions/setup-python@v3 - with: - python-version: "3.8" - - # Runs a single command using the runners shell - - name: install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest - # Runs a set of commands using the runners shell - - 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: | - pipenv run pytest From 78821b952833b6ac49a7b0bd50aeb942e9bc0f14 Mon Sep 17 00:00:00 2001 From: Shivanirathod126 <110033777+Shivanirathod126@users.noreply.github.com> Date: Sun, 31 Jul 2022 15:24:28 +0530 Subject: [PATCH 7/8] did --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..5c9d6fd --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +name: Python application + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - 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 numpy pandas torch cvxpy cvxpylayers mlflow tensorboard seaborn pillow tqdm pytest-cov -U sphinx + 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 From 2074fc5b5ff5242a51ce86e510e8330640cb6b83 Mon Sep 17 00:00:00 2001 From: Shivanirathod126 <110033777+Shivanirathod126@users.noreply.github.com> Date: Sun, 31 Jul 2022 15:27:51 +0530 Subject: [PATCH 8/8] dide --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5c9d6fd..dc41e90 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest numpy pandas torch cvxpy cvxpylayers mlflow tensorboard seaborn pillow tqdm pytest-cov -U sphinx + pip install flake8 pytest numpy pandas torch cvxpy cvxpylayers mlflow tensorboard seaborn pillow tqdm pytest-cov if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: |