From 4e36afe1bef6ab5927fe0d28baa03dde37cff898 Mon Sep 17 00:00:00 2001 From: "Ilya (Marshal)" Date: Fri, 17 Nov 2023 21:13:14 +0100 Subject: [PATCH 1/2] =?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 From 7ce2859e1fcbb7268d2c3b3ee19b5db955fc3272 Mon Sep 17 00:00:00 2001 From: "Ilya (Marshal)" Date: Fri, 17 Nov 2023 21:15:41 +0100 Subject: [PATCH 2/2] add docs reqs install --- .github/workflows/codegen.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/codegen.yml b/.github/workflows/codegen.yml index ab3c1f75..4fd2de6f 100644 --- a/.github/workflows/codegen.yml +++ b/.github/workflows/codegen.yml @@ -7,16 +7,7 @@ permissions: jobs: codegen_check: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ ubuntu-latest ] - - defaults: - run: - shell: bash - + runs-on: ubuntu-latest steps: - name: Checkout repository. uses: actions/checkout@v4 @@ -27,7 +18,9 @@ jobs: python-version: 3.7 - name: Install dependencies. - run: pip install -r requirements-dev.txt + run: | + pip install -r requirements-dev.txt + pip install -r docs/requirements.txt - name: Run codegen. run: |