From b07361361f4af99e4e11b236c597893327021c46 Mon Sep 17 00:00:00 2001 From: eiAkashi <92679884+eiAkashi@users.noreply.github.com> Date: Sun, 9 Mar 2025 11:03:13 +0900 Subject: [PATCH 1/5] Create python-package.yml --- .github/workflows/python-package.yml | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/python-package.yml diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..e56abb6 --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,40 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python package + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v4 + - 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 + python -m pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest From 62a639b7a144760b8350f532fb1317fa8afbcc49 Mon Sep 17 00:00:00 2001 From: eiAkashi <92679884+eiAkashi@users.noreply.github.com> Date: Sun, 9 Mar 2025 02:17:19 +0000 Subject: [PATCH 2/5] remove python package --- .github/workflows/python-package.yml | 40 ---------------------------- 1 file changed, 40 deletions(-) delete mode 100644 .github/workflows/python-package.yml diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml deleted file mode 100644 index e56abb6..0000000 --- a/.github/workflows/python-package.yml +++ /dev/null @@ -1,40 +0,0 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: Python package - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: ["3.9", "3.10", "3.11"] - - steps: - - uses: actions/checkout@v4 - - 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 - python -m pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest From cab69c4b7473c64c29c288eadbf80f578c31c5c0 Mon Sep 17 00:00:00 2001 From: eiAkashi <92679884+eiAkashi@users.noreply.github.com> Date: Sun, 9 Mar 2025 11:38:56 +0900 Subject: [PATCH 3/5] Update python version to 3.10 --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8007cb3..74f92ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,10 +9,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + - name: Set up Python 3.10 uses: actions/setup-python@v1 with: - python-version: 3.8 + python-version: 3.10 - name: Install dependencies run: | make install From 6527f99fa945006d5aa71a3fdeb82ce7974e92cd Mon Sep 17 00:00:00 2001 From: eiAkashi <92679884+eiAkashi@users.noreply.github.com> Date: Sun, 9 Mar 2025 02:36:08 +0000 Subject: [PATCH 4/5] update python version to 3.10 --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 219de8b..59d88e1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -pylint==2.12.2 +pylint==3.3.4 pytest==7.0.1 -black==22.1.0 \ No newline at end of file +black==25.1.0 \ No newline at end of file From c0f1cfb47f1cff53b084a707b653f8b3f670876a Mon Sep 17 00:00:00 2001 From: eiAkashi <92679884+eiAkashi@users.noreply.github.com> Date: Sun, 9 Mar 2025 02:41:11 +0000 Subject: [PATCH 5/5] python 3.10.16 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 74f92ab..2abee9c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v1 with: - python-version: 3.10 + python-version: 3.10.16 - name: Install dependencies run: | make install