Skip to content

Commit

Permalink
Добавлен GHA workflow для проверки актуальности генерируемого кода
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Nov 17, 2023
1 parent b0f5b28 commit 4e36afe
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4e36afe

Please sign in to comment.