summaryrefslogtreecommitdiff
path: root/.github/workflows/lint.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/lint.yml')
-rw-r--r--.github/workflows/lint.yml64
1 files changed, 64 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 0000000..6a8127f
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,64 @@
+name: Lint
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@v2
+
+ - name: Set up Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.11.5
+
+ - name: Install Dependencies
+ run: pip install -r requirements.txt
+
+ - name: Run Black
+ run: |
+ python -m black --check .
+
+ - name: Run isort
+ run: |
+ python -m isort --check .
+
+ - name: Run Flake8
+ run: |
+ python -m flake8
+
+ - name: Run Pylint
+ run: |
+ python -m pylint app
+
+ - name: Run mypy
+ run: |
+ python -m mypy .
+
+ testing:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@v2
+
+ - name: Set up Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.11.5
+
+ - name: Install Dependencies
+ run: pip install -r requirements.txt
+
+ - name: Run Tests
+ run: |
+ python -m pytest