From 8a79b400c44ece800123a58335ce5c5c010d3881 Mon Sep 17 00:00:00 2001 From: jeffry <36665036+wangxin688@users.noreply.github.com> Date: Fri, 12 Jan 2024 22:26:24 +0800 Subject: [PATCH] Update and rename pylint.yml to ruff-action.yml --- .github/workflows/pylint.yml | 23 ----------------------- .github/workflows/ruff-action.yml | 8 ++++++++ 2 files changed, 8 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/pylint.yml create mode 100644 .github/workflows/ruff-action.yml diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml deleted file mode 100644 index 3cf9e47..0000000 --- a/.github/workflows/pylint.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Pylint - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.11", "3.12"] - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - - name: Analysing the code with pylint - run: | - pylint $(git ls-files '*.py') diff --git a/.github/workflows/ruff-action.yml b/.github/workflows/ruff-action.yml new file mode 100644 index 0000000..563b87d --- /dev/null +++ b/.github/workflows/ruff-action.yml @@ -0,0 +1,8 @@ +name: Ruff +on: [push, pull_request] +jobs: + ruff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: chartboost/ruff-action@v1