From 799246fa5da40e110fd2c0f1896869637bd9c73b Mon Sep 17 00:00:00 2001 From: Shion Ichikawa Date: Sun, 28 Jan 2024 03:55:50 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20introduce=20linter=20as=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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 00000000..db526616 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,23 @@ +name: Lint with autopep8 autoflake +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: 3.10 + - name: Install dependencies + run: | + python -m pip install autopep8 autoflake + - name: Lint with autopep8 autoflake + run: | + make lint