Repository: m3dev/kannon (language: python)

Issue:
Fix lint setting
It didn't seem to work flake8, yapf and isort.


Discussion / hints:
Thank you for the review!

Fix patch:
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 0000000..5746bda
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,25 @@
+name: Lint
+
+on:
+  push:
+    branches: [master]
+  pull_request:
+
+jobs:
+  lint:
+    name: Lint
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v3
+      - uses: actions/setup-python@v4
+        with:
+          python-version: 3.9
+      - name: Install dependencies
+        run: |
+          python -m pip install --upgrade pip
+          python -m pip install poetry
+          poetry install
+      - name: Run yapf, isort, and flake8
+        run: |
+          poetry run tox -e yapf,isort,flake8
diff --git a/tox.ini b/tox.ini
index a59d325..9ef664b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = py{38,39,310,311,yapf,isort,flake8}
+envlist = py{38,39,310,311},yapf,isort,flake8
 isolated_build = true
 
 [testenv]


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 4df8d16..80aba51 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -23,7 +23,8 @@ jobs:
     - name: Install dependencies
       run: |
         python -m pip install --upgrade pip
-        python -m pip install tox-gh-actions poetry
+        python -m pip install poetry
         poetry install
+        poetry run python -m pip install tox-gh-actions
     - name: Test with tox
       run: poetry run tox