Preserve method output contracts with current TensorDict #393
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: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - main | ||
| jobs: | ||
| ci: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.11", "3.12", "3.13"] | ||
| timeout-minutes: 20 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install just | ||
| uses: extractions/setup-just@v3 | ||
| with: | ||
| just-version: 1.41.0 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install dependencies | ||
| run: | | ||
| uv sync --locked --no-default-groups --group dev --group notebooks | ||
| - name: Run checks | ||
| run: | | ||
| UV_NO_SYNC=1 just checks | ||
| - name: Run tests | ||
| run: | | ||
| UV_NO_SYNC=1 just tests | ||
| - name: Upload coverage reports to Codecov | ||
| if: matrix.python-version == '3.11' | ||
| uses: codecov/codecov-action@v5 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| files: coverage.xml | ||
| fail_ci_if_error: true | ||
| - name: Upload test results to Codecov | ||
| if: matrix.python-version == '3.11' && ${{ !cancelled() }} | ||
|
Check warning on line 43 in .github/workflows/ci.yml
|
||
| uses: codecov/test-results-action@v1 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| fail_ci_if_error: true | ||