Update lexicons fetched from 38ee7f0 committed 2026-07-16T23:39:27Z #673
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Codegen check | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| codegen_check: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, windows-latest, macos-latest ] | |
| env: | |
| POETRY_VIRTUALENVS_IN_PROJECT: "true" | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout repository. | |
| uses: actions/checkout@v5 | |
| - name: Set up Python. | |
| id: setup-python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.9' | |
| - name: Load cached Poetry installation. | |
| id: cached-poetry | |
| if: runner.os != 'Windows' | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.local | |
| key: poetry-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-2.2.1 # bump the suffix to reset the cache | |
| - name: Setup Poetry. | |
| if: steps.cached-poetry.outputs.cache-hit != 'true' | |
| uses: snok/install-poetry@v1 | |
| with: | |
| version: 2.2.1 | |
| - name: Add Poetry to PATH. | |
| if: runner.os != 'Windows' | |
| run: echo "$HOME/.local/bin" >> "$GITHUB_PATH" | |
| - name: Load cached venv. | |
| id: cached-venv | |
| # caching the venv stalls for hours on Windows runners | |
| if: runner.os != 'Windows' | |
| uses: actions/cache@v5 | |
| with: | |
| path: .venv | |
| key: venv-full-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} | |
| - name: Install dependencies. | |
| if: steps.cached-venv.outputs.cache-hit != 'true' | |
| run: poetry install --no-interaction | |
| - name: Run codegen. | |
| run: poetry run atproto gen all | |
| - name: Run docs gen. | |
| if: runner.os == 'Linux' | |
| run: | | |
| source $(poetry env info -p)/bin/activate | |
| make -s -C docs gen | |
| - name: Check working directory is clean. | |
| run: git diff --exit-code |