From fda71b0467fca0e2aa01344e1e0377ec5835a26b Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 9 Dec 2023 00:39:35 -0500 Subject: [PATCH] tests: add lint github action workflow --- .github/workflows/lint.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..894edf3 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,28 @@ +--- +name: "lint" + +# yamllint disable-line rule:truthy +on: + push: + branches: + - "*" + +jobs: + lint: + name: tagged-release + runs-on: ubuntu-22.04 + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: "3.8" + cache: "pip" + - run: pip install -r requirements.txt + - run: flake8 --ignore=E501,E203,W503 + - run: black . + - run: rst-lint README.rst