From fe5ac3e52b26282e161c2e2b49f2032b86d47607 Mon Sep 17 00:00:00 2001 From: Sinspired <63581268+sinspired@users.noreply.github.com> Date: Sat, 7 Dec 2024 09:25:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20update=5Fhosts.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update_hosts.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/update_hosts.yml b/.github/workflows/update_hosts.yml index 36c874f..e9f867c 100644 --- a/.github/workflows/update_hosts.yml +++ b/.github/workflows/update_hosts.yml @@ -16,6 +16,16 @@ permissions: contents: write jobs: + lint: + runs-on: ubuntu-latest + strategy: + matrix: + linter: [flake8, pylint, ruff, mypy, pytype, pyright, fixit, pyre] + steps: + - uses: advanced-security/python-lint-code-scanning-action@v1 + with: + linter: ${{ matrix.linter }} + update-hosts: runs-on: ubuntu-latest @@ -40,15 +50,6 @@ jobs: python -m pip install --upgrade pip sudo pip install -r requirements.txt - - name: Check files using the black formatter - uses: datadog/action-py-black-formatter@v2.1 - with: - check_mode: "true" - print_diff_mode: "true" - - - - - name: Run hosts update script1 run: | sudo python3 setHosts.py