From ba689af2293b838ce3f9b78a485461e732ffa786 Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Fri, 8 Dec 2023 12:05:55 +0100 Subject: [PATCH] PR check for Python sources --- .github/workflows/pr_approval.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pr_approval.yaml diff --git a/.github/workflows/pr_approval.yaml b/.github/workflows/pr_approval.yaml new file mode 100644 index 0000000..9ed8893 --- /dev/null +++ b/.github/workflows/pr_approval.yaml @@ -0,0 +1,30 @@ +name: Pytest + +on: + - push + - pull_request + +jobs: + pytest: + runs-on: ubuntu-20.04 + strategy: + matrix: + python-version: + - "3.7" + - "3.8" + - "3.9" + - "3.10" + - "3.11" + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - run: pip install --upgrade setuptools + - run: pip install --upgrade wheel + - run: pip install pycodestyle + - run: pip install pydocstyle + - name: Style checks + run: make style + - name: Docstrings checks + run: make doc-check