From 6fa47cdab9cdfa134d6eda94f06c45d549ae34bf Mon Sep 17 00:00:00 2001 From: fisa712 <101712610+fisa712@users.noreply.github.com> Date: Fri, 24 Feb 2023 17:51:07 +0500 Subject: [PATCH 01/10] Create pylint.yml --- .github/workflows/pylint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pylint.yml diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 00000000..383e65cd --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Analysing the code with pylint + run: | + pylint $(git ls-files '*.py') From 943392e30e3400e145c08a7b16a6230b2087ac52 Mon Sep 17 00:00:00 2001 From: fisa712 <101712610+fisa712@users.noreply.github.com> Date: Fri, 24 Feb 2023 18:03:26 +0500 Subject: [PATCH 02/10] Create i191855_workflow.yml --- .github/workflows/i191855_workflow.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/i191855_workflow.yml diff --git a/.github/workflows/i191855_workflow.yml b/.github/workflows/i191855_workflow.yml new file mode 100644 index 00000000..b3173bc3 --- /dev/null +++ b/.github/workflows/i191855_workflow.yml @@ -0,0 +1,17 @@ +name : push events workflow + +on : push + +jobs : + unit-testing : + runs-on: ubuntu-latest + + steps : + - name : Checkout Code + uses : actions/checkout@v2 + + - name : Install Package + run : pip install pytest numpy pandas + + - name : Run Test + run : pytest test_preprocessig.py From 26619db653d47fe0afc816f0cb7b6146f499d8ff Mon Sep 17 00:00:00 2001 From: fisa712 <101712610+fisa712@users.noreply.github.com> Date: Fri, 24 Feb 2023 18:09:01 +0500 Subject: [PATCH 03/10] Update i191855_workflow.yml --- .github/workflows/i191855_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/i191855_workflow.yml b/.github/workflows/i191855_workflow.yml index b3173bc3..153592f9 100644 --- a/.github/workflows/i191855_workflow.yml +++ b/.github/workflows/i191855_workflow.yml @@ -14,4 +14,4 @@ jobs : run : pip install pytest numpy pandas - name : Run Test - run : pytest test_preprocessig.py + run : pytest test_preprocessing.py From bec1b01d374a77a4f97b5df514d824a4abf7bc91 Mon Sep 17 00:00:00 2001 From: fisa712 <101712610+fisa712@users.noreply.github.com> Date: Fri, 24 Feb 2023 18:11:51 +0500 Subject: [PATCH 04/10] Delete i191855_workflow.yml --- .github/workflows/i191855_workflow.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .github/workflows/i191855_workflow.yml diff --git a/.github/workflows/i191855_workflow.yml b/.github/workflows/i191855_workflow.yml deleted file mode 100644 index 153592f9..00000000 --- a/.github/workflows/i191855_workflow.yml +++ /dev/null @@ -1,17 +0,0 @@ -name : push events workflow - -on : push - -jobs : - unit-testing : - runs-on: ubuntu-latest - - steps : - - name : Checkout Code - uses : actions/checkout@v2 - - - name : Install Package - run : pip install pytest numpy pandas - - - name : Run Test - run : pytest test_preprocessing.py From 0b52c08b611f689495c0eac202f1bcf6b42f5217 Mon Sep 17 00:00:00 2001 From: fisa712 <101712610+fisa712@users.noreply.github.com> Date: Fri, 24 Feb 2023 18:12:12 +0500 Subject: [PATCH 05/10] Delete pylint.yml --- .github/workflows/pylint.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .github/workflows/pylint.yml diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml deleted file mode 100644 index 383e65cd..00000000 --- a/.github/workflows/pylint.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Pylint - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8", "3.9", "3.10"] - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - - name: Analysing the code with pylint - run: | - pylint $(git ls-files '*.py') From 572e54a766e1f516f3e94b830033186e1c59f04b Mon Sep 17 00:00:00 2001 From: fisa712 <101712610+fisa712@users.noreply.github.com> Date: Fri, 24 Feb 2023 18:47:18 +0500 Subject: [PATCH 06/10] Create main.yml --- .github/workflows/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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 00000000..7c2d8aea --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name : push events workflow + +on: + push: + branches: + - i191855_python-machine-learning-book-3rd-edition + +jobs : + unit-testing : + runs-on: ubuntu-latest + + steps : + - name : Checkout Code + uses : actions/checkout@v2 + + - name : Install Package + run : pip install pytest numpy pandas + + - name : Run Test + run : pytest /ch08/additional_features/test_preprocessing.py From 145445e10ee3e48253f23363c40ec302d79ffb86 Mon Sep 17 00:00:00 2001 From: fisa712 <101712610+fisa712@users.noreply.github.com> Date: Fri, 24 Feb 2023 19:35:49 +0500 Subject: [PATCH 07/10] Create pylint.yml --- .github/workflows/pylint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pylint.yml diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 00000000..383e65cd --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Analysing the code with pylint + run: | + pylint $(git ls-files '*.py') From b79b5cab9d36cb178464d33a05b7e100febcdef9 Mon Sep 17 00:00:00 2001 From: fisa712 <101712610+fisa712@users.noreply.github.com> Date: Fri, 24 Feb 2023 19:42:16 +0500 Subject: [PATCH 08/10] Create analysis_codeql.yml --- .github/workflows/analysis_codeql.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/analysis_codeql.yml diff --git a/.github/workflows/analysis_codeql.yml b/.github/workflows/analysis_codeql.yml new file mode 100644 index 00000000..283b1764 --- /dev/null +++ b/.github/workflows/analysis_codeql.yml @@ -0,0 +1,25 @@ +name: CodeQL Analysis + +on: + push: + branches: [main] + +jobs: + analyze: + name: Analyze code with CodeQL + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: python + + - name: Autobuild CodeQL database + uses: github/codeql-action/autobuild@v1 + + - name: Analyze code with CodeQL + uses: github/codeql-action/analyze@v1 From 58eb48447f2c0f1653920916384c9393b5b63cf1 Mon Sep 17 00:00:00 2001 From: fisa712 <101712610+fisa712@users.noreply.github.com> Date: Tue, 28 Feb 2023 19:09:01 +0500 Subject: [PATCH 09/10] Update pylint.yml updated for branch --- .github/workflows/pylint.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 383e65cd..84b20d98 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,7 +1,8 @@ -name: Pylint - -on: [push] - +name: My Workflow +on: + push: + branches: + - i191855_branch_feat_addition jobs: build: runs-on: ubuntu-latest From 722ee0f0738d890ff673c6ad5fa5613be0caf9b8 Mon Sep 17 00:00:00 2001 From: fisa712 <101712610+fisa712@users.noreply.github.com> Date: Tue, 28 Feb 2023 19:18:32 +0500 Subject: [PATCH 10/10] Update pylint.yml --- .github/workflows/pylint.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 84b20d98..5d351b4f 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -22,3 +22,5 @@ jobs: - name: Analysing the code with pylint run: | pylint $(git ls-files '*.py') + working-directory: additional_features +