fix(cli): report circular dependencies consistently #951
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: Rust/Python parity check | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "rust/**" | |
| - "skylos/**" | |
| - "test/test_fast_parity.py" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "rust/**" | |
| - "skylos/**" | |
| - "test/test_fast_parity.py" | |
| permissions: | |
| contents: read | |
| jobs: | |
| parity: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| with: | |
| persist-credentials: false | |
| - name: Configure parity venv path | |
| run: echo "SK_PARITY_VENV=${RUNNER_TEMP}/skylos-parity-venv" >> "$GITHUB_ENV" | |
| - name: Set up Python | |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable | |
| with: | |
| toolchain: stable | |
| - name: Cache Rust build | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 | |
| with: | |
| path: | | |
| rust/target | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| key: rust-parity-${{ hashFiles('rust/Cargo.lock') }} | |
| - name: Install skylos | |
| run: | | |
| rm -rf "${SK_PARITY_VENV}" | |
| python -m venv "${SK_PARITY_VENV}" | |
| "${SK_PARITY_VENV}/bin/python" -m pip install -e ".[test]" | |
| - name: Install maturin and build skylos-fast | |
| run: | | |
| "${SK_PARITY_VENV}/bin/python" -m pip install maturin | |
| cd rust | |
| VIRTUAL_ENV="${SK_PARITY_VENV}" "${SK_PARITY_VENV}/bin/python" -m maturin develop --release | |
| - name: Run parity tests | |
| run: | | |
| "${SK_PARITY_VENV}/bin/python" -m pytest test/test_fast_parity.py -v --tb=short |