Flyte 2 WIP #154
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: Check Generated Files | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
check-generate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set fallback version | |
run: echo "SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0" >> $GITHUB_ENV | |
- name: Set up the environment | |
uses: ./.github/actions/setup-python-env | |
with: | |
python-version: '3.12' | |
working-directory: './gen/python' | |
env: | |
UV_PROJECT_ENVIRONMENT: /tmp/flyte2-venv | |
- name: Setup Buf CLI | |
uses: bufbuild/buf-setup-action@v1 # Install the Buf CLI | |
with: | |
version: 'latest' # Or specify a precise version like '1.56.0' | |
- name: Install uv | |
uses: astral-sh/setup-uv@v6 | |
id: setup-uv | |
with: | |
enable-cache: 'false' | |
cache-suffix: 3.12 | |
cache-dependency-glob: | | |
pyproject.toml | |
uv.lock | |
working-directory: ./ | |
- name: Add Go bin to PATH | |
run: echo "$HOME/go/bin" >> $GITHUB_PATH | |
- name: Run make download_tooling | |
run: make download_tooling && which mockery | |
- name: Run make gen | |
run: which mockery && make gen | |
- name: Check for changes | |
run: | | |
git diff --exit-code || (echo 'Generated files are out of date. Run `make gen` and commit changes.' && exit 1) | |
- name: Check rust builds | |
run: | | |
make build-crate | |