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 diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 99feea1..c1c3bd2 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: @@ -16,4 +17,3 @@ jobs: - name: Install dependencies run: make - 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