docs: pin public ecosystem evidence #106
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - name: Install dependencies | |
| run: pip install -e ".[dev]" | |
| - name: Lint | |
| run: ruff check src/ tests/ | |
| - name: Run tests | |
| run: pytest --tb=short -q | |
| - name: Exercise the pre-commit consumer hook | |
| if: matrix.python-version == '3.12' | |
| run: pre-commit try-repo . lintlang --files AGENTS.md --verbose | |
| - name: Self-scan samples | |
| run: lintlang scan samples/clean_config.yaml --format json | |
| action-smoke: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Action succeeds on a clean fixture | |
| uses: ./ | |
| with: | |
| path: samples/clean_config.yaml | |
| - name: Action fails on a failing fixture | |
| id: failing-scan | |
| continue-on-error: true | |
| uses: ./ | |
| with: | |
| path: samples/bad_tool_descriptions.yaml | |
| - name: Assert failing fixture returned failure | |
| env: | |
| ACTION_OUTCOME: ${{ steps.failing-scan.outcome }} | |
| run: test "$ACTION_OUTCOME" = "failure" |