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 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 diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 00000000..5d351b4f --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,26 @@ +name: My Workflow +on: + push: + branches: + - i191855_branch_feat_addition +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') + working-directory: additional_features +