Skip to content

Commit

Permalink
Merge branch 'main' into fix/support_parent_rel_paths
Browse files Browse the repository at this point in the history
  • Loading branch information
callumtilbury authored Jul 26, 2024
2 parents 0ab35c7 + 780183f commit 31647d5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:runner-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/tests_linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,22 @@ on: [ push, pull_request ]

jobs:
tests-and-linters:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: "${{ matrix.os }}"

strategy:
matrix:
python-version: ["3.9"]
os: [self-hosted]
name: "Python 3.9 on GitHub Hosted runner"
runs-on: ubuntu-latest
container:
image: python:3.9

steps:
- name: Install dependencies for viewer test
run: sudo apt-get update && sudo apt-get install -y xvfb
run: apt-get update && apt-get install -y xvfb
- name: Checkout flashbax
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: Install python dependencies 🔧
run: pip install .[dev]
- name: List python packages 📦
run: pip list
- name: Update git permissions
run: git config --global --add safe.directory /__w/flashbax/flashbax
- name: Run linters 🖌️
run: pre-commit run --all-files --verbose
- name: Run tests 🧪
Expand Down
1 change: 1 addition & 0 deletions flashbax/buffers/prioritised_trajectory_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ def make_prioritised_trajectory_buffer(
if max_size is not None:
max_length_time_axis = max_size // add_batch_size

assert max_length_time_axis is not None
init_fn = functools.partial(
prioritised_init,
add_batch_size=add_batch_size,
Expand Down
1 change: 1 addition & 0 deletions flashbax/buffers/trajectory_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ def make_trajectory_buffer(
if max_size is not None:
max_length_time_axis = max_size // add_batch_size

assert max_length_time_axis is not None
init_fn = functools.partial(
init,
add_batch_size=add_batch_size,
Expand Down

0 comments on commit 31647d5

Please sign in to comment.