summaryrefslogtreecommitdiff
path: root/.github/workflows/lint.yml
diff options
context:
space:
mode:
authorSakuraMemory <[email protected]>2022-05-30 20:35:47 +0800
committerGitHub <[email protected]>2022-05-30 20:35:47 +0800
commitbeb92add52ece468c1031392e0f7447083333049 (patch)
tree32fd74703e041acd7f3bcb881c7fe24bd18a3f7d /.github/workflows/lint.yml
parenta592d64297155f40fce3bc68839ebaf9f0bed3c2 (diff)
parentc560a8bcd9d5ced204a37a9008ef984a954e1cc3 (diff)
downloadATRI-beb92add52ece468c1031392e0f7447083333049.tar.gz
ATRI-beb92add52ece468c1031392e0f7447083333049.tar.bz2
ATRI-beb92add52ece468c1031392e0f7447083333049.zip
Merge pull request #8 from Kyomotoi/main
sync master
Diffstat (limited to '.github/workflows/lint.yml')
-rw-r--r--.github/workflows/lint.yml50
1 files changed, 8 insertions, 42 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 32499dd..0e113ec 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -17,67 +17,33 @@ jobs:
steps:
- name: Checkout πŸ›ŽοΈ
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: Setup Python 🐍
- uses: actions/setup-python@v2
+ uses: actions/[email protected]
with:
python-version: 3.8
- - uses: Gr1N/setup-poetry@v4
+ - uses: Gr1N/setup-poetry@v7
- - uses: actions/cache@v2
+ - uses: actions/[email protected]
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- 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