chore: add .gitattributes to enforce LF line endings repo-wide #21
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: Docs Examples | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - 'web/docs-examples/**' | |
| - 'web/src/content/docs/**' | |
| permissions: | |
| contents: read | |
| jobs: | |
| python-examples: | |
| name: Python examples | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Install Python runtime | |
| working-directory: ./runtime/python/prompty | |
| run: uv pip install --system -e '.[dev,all]' | |
| - name: Install docs examples deps | |
| working-directory: ./web/docs-examples/python | |
| run: uv pip install --system -r requirements-dev.txt | |
| - name: Run tests | |
| working-directory: ./web/docs-examples/python | |
| run: python -m pytest tests/ -q | |
| typescript-examples: | |
| name: TypeScript examples | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: web/docs-examples/typescript | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| - name: Build TypeScript runtime | |
| working-directory: runtime/typescript | |
| run: npm ci && npm run build | |
| - name: Install docs examples deps | |
| run: npm install | |
| - name: Run tests | |
| run: npm test | |
| csharp-examples: | |
| name: C# examples | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup dotnet 9.0 | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '9.0.x' | |
| - name: Run tests | |
| working-directory: ./web/docs-examples/csharp | |
| run: dotnet test --nologo --logger "console;verbosity=normal" | |
| docs-build: | |
| name: Docs site build | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: web | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build docs site | |
| run: npm run build |