Skip to content

Add devcontainer build #3

Add devcontainer build

Add devcontainer build #3

Workflow file for this run

name: 'build'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and run Dev Container task
uses: devcontainers/[email protected]
with:
# Change this to point to your image name
imageName: ghcr.io/corax/corax-devcontainer
cacheFrom: ghcr.io/corax/corax-devcontainer
# Change this to be your CI task/script
runCmd: |
# Add multiple commands to run if needed
export TFDS_DATA_DIR=$PWD/.tensorflow_datasets
mkdir -p $TFDS_DATA_DIR
pdm install -G tf,jax,test,dev,jax_cuda
pdm lint
pdm test
- name: Test TFDS data generation
run: |
export TFDS_DATA_DIR=$PWD/.tensorflow_datasets
tfds build --config v1-medium-replay d4rl_mujoco_halfcheetah
ls -l $TFDS_DATA_DIR