Align 0.3.1 package versions #132
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: yaml-tstring CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - ".github/workflows/yaml-tstring-ci.yml" | |
| - "conformance/**" | |
| - "yaml-tstring/**" | |
| - "rust/**" | |
| - "tstring-core/**" | |
| pull_request: | |
| paths: | |
| - ".github/workflows/yaml-tstring-ci.yml" | |
| - "conformance/**" | |
| - "yaml-tstring/**" | |
| - "rust/**" | |
| - "tstring-core/**" | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: yaml-tstring | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| python-version: "3.14" | |
| working-directory: yaml-tstring | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@1.94.0 | |
| - name: Sync development dependencies | |
| run: uv sync --group dev | |
| - name: Configure PyO3 test environment | |
| shell: bash | |
| run: | | |
| PYTHON_BIN="$(uv run --group dev python - <<'PY' | |
| import sys | |
| print(sys.executable) | |
| PY | |
| )" | |
| PYTHON_LIBDIR="$(uv run --group dev python - <<'PY' | |
| import sysconfig | |
| print(sysconfig.get_config_var("LIBDIR") or "") | |
| PY | |
| )" | |
| echo "PYO3_PYTHON=$PYTHON_BIN" >> "$GITHUB_ENV" | |
| if [ -n "$PYTHON_LIBDIR" ]; then | |
| echo "LD_LIBRARY_PATH=$PYTHON_LIBDIR${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" >> "$GITHUB_ENV" | |
| echo "LIBRARY_PATH=$PYTHON_LIBDIR${LIBRARY_PATH:+:$LIBRARY_PATH}" >> "$GITHUB_ENV" | |
| fi | |
| - name: Check formatting | |
| run: uv run --group dev ruff format --check . ../tstring-core | |
| - name: Run lint | |
| run: uv run --group dev ruff check . ../tstring-core | |
| - name: Run type checker | |
| run: uv run --group dev ty check src tests ../tstring-core/src ../examples/_display.py ../examples/yaml_release_manifest.py | |
| - name: Run tests | |
| run: uv run --group dev pytest | |
| - name: Run Rust parser tests | |
| run: cargo test --manifest-path ../rust/Cargo.toml -p tstring-yaml -p tstring-yaml-pyo3-tests --tests |