From d9ec5de847f6715f02c98c6047833b548b576381 Mon Sep 17 00:00:00 2001 From: Egor Kostan Date: Wed, 4 Dec 2024 20:55:52 -0800 Subject: [PATCH] Create pydocstyle_kyu4.yml --- .github/workflows/pydocstyle_kyu4.yml | 46 +++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/pydocstyle_kyu4.yml diff --git a/.github/workflows/pydocstyle_kyu4.yml b/.github/workflows/pydocstyle_kyu4.yml new file mode 100644 index 00000000000..fb5fab4f43d --- /dev/null +++ b/.github/workflows/pydocstyle_kyu4.yml @@ -0,0 +1,46 @@ +--- +name: pydocstyle for kyu4 + +on: # yamllint disable-line rule:truthy + push: + branches: + - 'kyu4' + +permissions: + contents: read + pull-requests: read + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.x"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + # This is the version of the action for setting up Python, + # not the Python version. + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + # You can test your matrix by printing the current Python version + - name: Display Python version + run: python -c "import sys; print(sys.version)" + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools wheel + pip install -r requirements.txt + pip install pydocstyle + pip install types-requests + - name: Check to make sure that the module is in your Python path + run: | + echo $PYTHONPATH + - name: Check pydocstyle version + run: | + pydocstyle --version + - name: Doc style checking with pydocstyle + # Pydocstyle testing (Guide) + # https://www.pydocstyle.org/en/stable/usage.html#cli-usage + run: | + pydocstyle --verbose --explain --count kyu_4