From 3c75787e52888a2be51f798b31a6f11570c07bfa Mon Sep 17 00:00:00 2001 From: LucaStabo Date: Thu, 2 Oct 2025 14:29:52 +0200 Subject: [PATCH 1/6] added python lint --- .github/workflows/makefile.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 99feea1..646896b 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -17,3 +17,23 @@ jobs: - name: Install dependencies run: make + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.x" + + - name: Install flake8 + run: | + python -m pip install --upgrade pip + pip install flake8 + + - name: Run flake8 lint + run: | + # Lint the Python code in src/ and tests/ + flake8 src/ \ No newline at end of file From ced9d8fc547798fa70a186cc7241e4e2dc01fc14 Mon Sep 17 00:00:00 2001 From: LucaStabo Date: Thu, 2 Oct 2025 14:31:29 +0200 Subject: [PATCH 2/6] added workflow dispatch --- .github/workflows/makefile.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 646896b..d155d78 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -5,6 +5,7 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] + workflow_dispatch: jobs: build: From 649138df04f365c287c07dfd99d12b349a215e79 Mon Sep 17 00:00:00 2001 From: LucaStabo Date: Thu, 2 Oct 2025 14:34:17 +0200 Subject: [PATCH 3/6] removed keras version --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ac42008..58dffc3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,4 +22,4 @@ torchvision keras-preprocessing plotly tensorflow -keras==2.15.0 \ No newline at end of file +keras \ No newline at end of file From cd9346ff8be6f748cad4c311983b675249372b4a Mon Sep 17 00:00:00 2001 From: LucaStabo Date: Thu, 2 Oct 2025 14:44:31 +0200 Subject: [PATCH 4/6] moved lint to his own file --- .github/workflows/lint.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..bc37709 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,30 @@ +name: Makefile CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.x" + + - name: Install flake8 + run: | + python -m pip install --upgrade pip + pip install flake8 + + - name: Run flake8 lint + run: | + # Lint the Python code in src/ and tests/ + flake8 src/ \ No newline at end of file From 3daefca9d9cf8708721b0a5a4e375239328f45a4 Mon Sep 17 00:00:00 2001 From: LucaStabo Date: Mon, 6 Oct 2025 11:34:15 +0200 Subject: [PATCH 5/6] removed duplicated workflow --- .github/workflows/makefile.yml | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index d155d78..c315d00 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -16,25 +16,4 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies - run: make - - lint: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.x" - - - name: Install flake8 - run: | - python -m pip install --upgrade pip - pip install flake8 - - - name: Run flake8 lint - run: | - # Lint the Python code in src/ and tests/ - flake8 src/ \ No newline at end of file + run: make \ No newline at end of file From 89fb5d7b50236cc85ad05d5d7e5a77fabf2b1189 Mon Sep 17 00:00:00 2001 From: LucaStabo Date: Mon, 6 Oct 2025 12:14:17 +0200 Subject: [PATCH 6/6] cleanup --- .github/workflows/makefile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index c315d00..c1c3bd2 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -16,4 +16,4 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies - run: make \ No newline at end of file + run: make