Move AdvantageBuffer to its own file and switch to tensordict #618
This file contains 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: Fastrl Testing | |
on: [push, pull_request] | |
# env: | |
# PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/nightly/cu113 | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: 'josiahls/fastrl-dev:latest' | |
steps: | |
- uses: actions/checkout@v1 | |
# - uses: actions/setup-python@v1 | |
# with: | |
# python-version: '3.7' | |
# architecture: 'x64' | |
- name: Install the library | |
run: | | |
sudo mkdir -p /github/home | |
sudo pip install -e .["dev"] | |
# - name: Read all notebooks | |
# run: | | |
# nbdev_read_nbs | |
- name: Check if all notebooks are cleaned | |
run: | | |
sudo git config --global --add safe.directory /__w/fastrl/fastrl | |
echo "Check we are starting with clean git checkout" | |
if [ -n "$(git status -uno -s)" ]; then echo "git status is not clean"; false; fi | |
echo "Trying to strip out notebooks" | |
sudo nbdev_clean | |
echo "Check that strip out was unnecessary" | |
git status -s # display the status to see which nbs need cleaning up | |
if [ -n "$(git status -uno -s)" ]; then echo -e "!!! Detected unstripped out notebooks\n!!!Remember to run nbdev_install_hooks"; false; fi | |
# - name: Check if there is no diff library/notebooks | |
# run: | | |
# if [ -n "$(nbdev_diff_nbs)" ]; then echo -e "!!! Detected difference between the notebooks and the library"; false; fi | |
- name: Run tests | |
run: | | |
pips show torchdata torch | |
pip3 install -e . | |
cd nbs | |
xvfb-run -s "-screen 0 1400x900x24" fastrl_nbdev_test --n_workers 12 --one2one | |
- name: Run Doc Build Test | |
run: | | |
fastrl_nbdev_docs --one2one |