Skip to content

Preserve method output contracts with current TensorDict #393

Preserve method output contracts with current TensorDict

Preserve method output contracts with current TensorDict #393

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / CI

Workflow syntax warning

.github/workflows/ci.yml (Line: 43, Col: 11): Conditional expression contains literal text outside replacement tokens. This will cause the expression to always evaluate to truthy. Did you mean to put the entire expression inside ${{ }}?
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true