Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/analysis_codeql.yml
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -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