summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2022-05-28 15:26:26 +0800
committerKyomotoi <[email protected]>2022-05-28 15:26:26 +0800
commitd990bbb2aebc2be1014720862a9e068ec320863f (patch)
treefaf104a598660d95c46fd0ae68d539b2ba4aa63f
parentb87fe5ee44a73f3c93de38eaaae67f1f358ca401 (diff)
downloadATRI-d990bbb2aebc2be1014720862a9e068ec320863f.tar.gz
ATRI-d990bbb2aebc2be1014720862a9e068ec320863f.tar.bz2
ATRI-d990bbb2aebc2be1014720862a9e068ec320863f.zip
๐Ÿ‘ท ไฟฎๅคๅฏ่ƒฝ็š„CIๆŠฅ้”™
-rw-r--r--.github/workflows/lint.yml43
1 files changed, 4 insertions, 39 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index f3f4a8d..a0412f1 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -22,7 +22,7 @@ jobs:
- name: Setup Python ๐Ÿ
uses: actions/[email protected]
with:
- python-version: 3.8
+ python-version: 3.10
- uses: Gr1N/setup-poetry@v7
@@ -33,52 +33,17 @@ jobs:
- name: Install Dependencies ๐Ÿ”ง
env:
- POETRY_VIRTUALENVS_CREATE: "false"
+ POETRY_VIRTUALENVS_CREATE: "true"
run: |
poetry install
python -m pip install --upgrade pip
- pip install flake8
+ pip install black
- name: Run Linters
uses: wearerequired/[email protected]
with:
auto_fix: true
black: true
+ black_auto_fix: true
commit_message: ":rotating_light: ่‡ชๅŠจ่ฟ›่กŒไปฃ็ ๆ ผๅผๅŒ–"
git_email: [email protected]
-
- analyze:
- runs-on: ubuntu-latest
- name: CodeQL Analyze
-
- steps:
- - name: Checkout ๐Ÿ›Ž๏ธ
- uses: actions/checkout@v2
-
- - name: Setup Python ๐Ÿ
- uses: actions/setup-python@v2
- with:
- python-version: 3.8
-
- - uses: Gr1N/setup-poetry@v4
-
- - uses: actions/cache@v2
- with:
- path: ~/.cache/pypoetry
- key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
-
- - name: Install Dependencies ๐Ÿ”ง
- env:
- POETRY_VIRTUALENVS_CREATE: "false"
- run: |
- poetry install
- - name: Initialize CodeQL
- uses: github/codeql-action/init@v1
- with:
- languages: python
- # Override the default behavior so that the action doesn't attempt
- # to auto-install Python dependencies
- setup-python-dependencies: false
-
- - name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v1