From 08ad085fd3974551524dd9e86633335709ae34b6 Mon Sep 17 00:00:00 2001 From: Saeed Rasooli Date: Fri, 20 Oct 2023 10:48:43 +0330 Subject: [PATCH] add .github/workflows/ruff.yml --- .github/workflows/ruff.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ruff.yml diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 000000000..6dfeb928d --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,29 @@ +name: "Ruff" + +on: + push: + pull_request: + # The branches below must be a subset of the branches above + schedule: + - cron: "33 1 * * 3" + +jobs: + ruff: + name: "See: docs.astral.sh/ruff" + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: cd and ls + run: | + cd ${{ github.workspace }} + ls -l + - name: Download ruff + run: | + wget -c https://github.com/astral-sh/ruff/releases/download/v0.0.290/ruff-x86_64-unknown-linux-gnu.tar.gz + tar -xzf ruff-x86_64-unknown-linux-gnu.tar.gz + ls -l ruff + chmod a+x ruff + - name: Run ruff + run: ./ruff .