Repository navigation
fix: keep LinkedList consistent when an element's drop panics #251
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: Python Test | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: tests-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| RUST_BACKTRACE: 1 | |
| UV_PYTHON_DOWNLOADS: 0 | |
| jobs: | |
| test-python: | |
| name: ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| continue-on-error: ${{ endsWith(matrix.python-version, 't') }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [ | |
| "3.10", | |
| "3.11", | |
| "3.12", | |
| "3.13", | |
| "3.14", "3.14t", | |
| "3.15", "3.15t", | |
| "pypy3.11", | |
| ] | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: dtolnay/rust-toolchain@stable # zizmor: ignore[unpinned-uses] | |
| - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 | |
| if: github.event_name == 'pull_request' && github.run_attempt == 1 | |
| with: | |
| lookup-only: false # zizmor: ignore[cache-poisoning] | |
| shared-key: ${{ matrix.python-version }} | |
| - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| allow-prereleases: true | |
| - name: "Install uv" | |
| uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2 | |
| with: | |
| enable-cache: false | |
| - name: "Create and activate .venv" | |
| run: | | |
| uv venv .venv --python ${{ matrix.python-version }} | |
| echo ".venv/bin" >> "$GITHUB_PATH" | |
| echo "PYO3_PYTHON=.venv/bin/python3" >> "$GITHUB_ENV" | |
| - name: "Install dependencies" | |
| run: uv pip install --group ci | |
| - name: "Run maturin" | |
| run: maturin develop --features use-small-offset | |
| - name: "Run pytest" | |
| run: pytest -v -n auto | |
| env: | |
| HYPOTHESIS_PROFILE: slow | |
| test-os: | |
| name: ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }}-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu, macos, windows] | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: dtolnay/rust-toolchain@stable # zizmor: ignore[unpinned-uses] | |
| - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 | |
| with: | |
| python-version: "3.13" | |
| - name: "Install uv" | |
| uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2 | |
| with: | |
| enable-cache: false | |
| - name: "Create and activate .venv" | |
| shell: bash | |
| run: | | |
| uv venv .venv --python 3.13 | |
| if [[ "${{ matrix.os }}" == "windows" ]]; then | |
| echo ".venv/Scripts" >> "$GITHUB_PATH" | |
| echo "PYO3_PYTHON=.venv/Scripts/python" >> "$GITHUB_ENV" | |
| echo "UV_LINK_MODE=copy" >> "$GITHUB_ENV" | |
| else | |
| echo ".venv/bin" >> "$GITHUB_PATH" | |
| echo "PYO3_PYTHON=.venv/bin/python3" >> "$GITHUB_ENV" | |
| fi | |
| - name: "Install dependencies" | |
| run: uv pip install --group ci | |
| - name: "Run maturin" | |
| run: maturin develop --features use-small-offset | |
| - name: "Run pytest" | |
| run: pytest -v -n auto | |
| env: | |
| HYPOTHESIS_PROFILE: slow |