From 4e36afe1bef6ab5927fe0d28baa03dde37cff898 Mon Sep 17 00:00:00 2001 From: "Ilya (Marshal)" Date: Fri, 17 Nov 2023 21:13:14 +0100 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20GHA=20workflow=20=D0=B4=D0=BB=D1=8F=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B8=20=D0=B0=D0=BA=D1=82=D1=83?= =?UTF-8?q?=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=D1=81=D1=82=D0=B8=20=D0=B3=D0=B5?= =?UTF-8?q?=D0=BD=D0=B5=D1=80=D0=B8=D1=80=D1=83=D0=B5=D0=BC=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=BA=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/codegen.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/codegen.yml diff --git a/.github/workflows/codegen.yml b/.github/workflows/codegen.yml new file mode 100644 index 00000000..ab3c1f75 --- /dev/null +++ b/.github/workflows/codegen.yml @@ -0,0 +1,39 @@ +name: Codegen check + +on: [ pull_request ] + +permissions: + contents: read + +jobs: + codegen_check: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ ubuntu-latest ] + + defaults: + run: + shell: bash + + steps: + - name: Checkout repository. + uses: actions/checkout@v4 + + - name: Set up Python. + uses: actions/setup-python@v4 + with: + python-version: 3.7 + + - name: Install dependencies. + run: pip install -r requirements-dev.txt + + - name: Run codegen. + run: | + make gen + cd docs + make gen + + - name: Check working directory is clean. + run: git diff --exit-code