diff options
author | Kyomotoi <[email protected]> | 2021-05-03 22:49:39 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-03 22:49:39 +0800 |
commit | 57b9f56254bb30fdf0d07c7583052aaf7ad5cfd6 (patch) | |
tree | 3e8087886ec3e9a7018da96572aa0ca783b921a9 /.github | |
parent | 7c8fe2d958f8e864bc2b04df88e73fcf14ea7f4a (diff) | |
download | ATRI-57b9f56254bb30fdf0d07c7583052aaf7ad5cfd6.tar.gz ATRI-57b9f56254bb30fdf0d07c7583052aaf7ad5cfd6.tar.bz2 ATRI-57b9f56254bb30fdf0d07c7583052aaf7ad5cfd6.zip |
π· θͺε¨ζ ΌεΌε代η
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yml | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..5dbff96 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,80 @@ +name: Lint + +on: + push: + paths: + - "**.py" + - "**.pyi" + - ".github/workflows/lint.yml" + pull_request: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + name: Lint Code + + 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 + - uses: wearerequired/lint-action@v1 + with: + auto_fix: true + black: 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 |