Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/benchmarks_pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Continuous benchmarking for PRs
#
# Only runs when Performance or benchmarks/upload label is present.
# This is expensive (GPU, runs twice for CPU/GPU comparison).
# Add the label manually or use [Performance] prefix in PR title.
name: Continuous Benchmark (PR)
on:
pull_request:
types: [opened, synchronize, labeled]

permissions: write-all

Expand All @@ -13,6 +19,11 @@ concurrency:
jobs:

benchmark:
# Only run benchmarks when Performance or benchmarks/upload label is present
if: |
contains(github.event.pull_request.labels.*.name, 'Performance') ||
contains(github.event.pull_request.labels.*.name, 'performance') ||
contains(github.event.pull_request.labels.*.name, 'benchmarks/upload')
name: ${{ matrix.device }} Pytest benchmark
runs-on: linux.g5.4xlarge.nvidia.gpu
strategy:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# This workflow builds the torchrl docs and deploys them to gh-pages.
#
# For PRs, docs are only built when the Documentation or tutorials/ label is present.
# This is auto-applied by the file-based labeler when doc files change.
# Always builds on push to main/nightly/release branches and tags.
name: Generate documentation
on:
push:
Expand All @@ -10,6 +14,7 @@ on:
- v[0-9]+.[0-9]+.[0-9]
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
pull_request:
types: [opened, synchronize, labeled]
workflow_dispatch:

concurrency:
Expand All @@ -24,6 +29,13 @@ permissions:

jobs:
build-docs:
# For PRs, only build docs when Documentation or tutorials/ label is present
# Always build on push (main/nightly/release/tags) and workflow_dispatch
if: |
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'Documentation') ||
contains(github.event.pull_request.labels.*.name, 'tutorials/')
strategy:
matrix:
python_version: [ "3.12" ]
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/test-linux-sota.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# SOTA (State-of-the-Art) implementation tests
#
# For PRs, only runs when sota-implementations/ label is present.
# This is auto-applied by the file-based labeler when sota files change.
# Always runs on push to main/nightly/release branches.
name: SOTA Tests on Linux

on:
pull_request:
types: [opened, synchronize, labeled]
push:
branches:
- nightly
Expand All @@ -24,6 +30,12 @@ permissions:

jobs:
tests:
# For PRs, only run when sota-implementations/ label is present
# Always run on push (main/nightly/release) and workflow_dispatch
if: |
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'sota-implementations/')
strategy:
matrix:
python_version: ["3.10"]
Expand Down
Loading