Repository navigation
[BugFix] Keep writes to an unpickled consolidated tensordict in its next pickle #5434
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: Unit-tests on MacOS | |
| on: | |
| pull_request: | |
| merge_group: | |
| types: [checks_requested] | |
| push: | |
| branches: | |
| - nightly | |
| - main | |
| - release/* | |
| workflow_dispatch: | |
| workflow_call: | |
| env: | |
| CHANNEL: "nightly" | |
| concurrency: | |
| # Documentation suggests ${{ github.head_ref }}, but that's only available on pull_request/pull_request_target triggers, so using ${{ github.ref }}. | |
| # On master, we want all builds to complete even if merging happens faster to make it easier to discover at which point something broke. | |
| group: test-macos-${{ github.ref == 'refs/heads/main' && format('ci-master-{0}', github.sha) || format('ci-{0}', github.ref) }} | |
| cancel-in-progress: true | |
| jobs: | |
| tests-silicon: | |
| strategy: | |
| matrix: | |
| python_version: ["3.10", "3.14"] | |
| fail-fast: false | |
| uses: pytorch/test-infra/.github/workflows/macos_job.yml@main | |
| with: | |
| runner: macos-m1-stable | |
| repository: pytorch/tensordict | |
| timeout: 120 | |
| script: | | |
| # Set env vars from matrix | |
| set -e | |
| set -v | |
| export PYTHON_VERSION=${{ matrix.python_version }} | |
| export CU_VERSION="cpu" | |
| export SYSTEM_VERSION_COMPAT=0 | |
| export TORCH_VERSION=nightly | |
| export ARCH=arm64 | |
| # The macOS runners are reused between jobs, and inductor caches its | |
| # precompiled headers under $TMPDIR. Once a later job reinstalls torch, | |
| # clang rejects those headers because cpp_prefix.h has a new mtime. | |
| # GitHub empties $RUNNER_TEMP at the start of every job. | |
| export TMPDIR="$RUNNER_TEMP" | |
| echo "PYTHON_VERSION: $PYTHON_VERSION" | |
| echo "CU_VERSION: $CU_VERSION" | |
| ## setup_env.sh | |
| bash .github/unittest/linux/scripts/setup_env.sh | |
| bash .github/unittest/linux/scripts/install.sh | |
| bash .github/unittest/linux/scripts/run_test.sh |