-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into back_to_rlbench
- Loading branch information
Showing
17 changed files
with
325 additions
and
68 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,115 @@ | ||
# Copied + modified from: https://gist.github.com/KernelA/04b4d7691f28e264f72e76cfd724d448 | ||
# Git | ||
.git | ||
.gitignore | ||
.gitattributes | ||
.gitmodules | ||
|
||
|
||
# CI | ||
.codeclimate.yml | ||
.travis.yml | ||
.taskcluster.yml | ||
|
||
# Docker | ||
docker-compose.yml | ||
Dockerfile | ||
.docker | ||
.dockerignore | ||
|
||
# Byte-compiled / optimized / DLL files | ||
**/__pycache__/ | ||
**/*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Virtual environment | ||
.env | ||
.venv/ | ||
venv/ | ||
|
||
# PyCharm | ||
.idea | ||
|
||
# Python mode for VIM | ||
.ropeproject | ||
**/.ropeproject | ||
|
||
# Vim swap files | ||
**/*.swp | ||
|
||
# VS Code | ||
.vscode/ | ||
|
||
# Mypy | ||
**/.mypy_cache/ | ||
|
||
# Pytest | ||
**/.pytest_cache/ | ||
|
||
# Prevent any of these files from being included in the docker image. | ||
|
||
artifacts/ | ||
bensnewlogs/ | ||
checkpoints/ | ||
data/ | ||
logs/ | ||
outputs/ | ||
results/ | ||
rollouts/ | ||
trained_models/ | ||
wandb/ | ||
wandb_artifacts/ | ||
|
||
third_party/ndf_robot/src/ndf_robot/data/ | ||
third_party/ndf_robot/src/ndf_robot/eval_data/ | ||
third_party/ndf_robot/src/ndf_robot/descriptions/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# A github action that builds a container image for the project. | ||
|
||
name: Build Container | ||
|
||
on: | ||
push: | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
paths: | ||
# This is the entire list of files that will trigger the workflow. | ||
- Dockerfile | ||
- pyproject.toml | ||
- requirements-gpu.txt | ||
- .github/workflows/build-container.yaml | ||
- .github/workflows/compute-tag.yaml | ||
|
||
jobs: | ||
compute_tag: | ||
uses: ./.github/workflows/compute-tag.yaml | ||
|
||
docker: | ||
runs-on: ubuntu-latest | ||
needs: compute_tag | ||
steps: | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
# This is the name of the image that will be pushed to Docker Hub. If the branch is main, the image will be tagged as latest. Else, it will be tagged as the branch name. | ||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/taxpose:${{ needs.compute_tag.outputs.image_tag }} | ||
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/taxpose:${{ needs.compute_tag.outputs.image_tag }} | ||
cache-to: type=inline |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Compute the docker tag for this branch | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
# description: 'If true, the tag will be latest if the docker image tag does not exist' | ||
latest_on_noexist: | ||
required: false | ||
type: string | ||
default: 'false' | ||
outputs: | ||
image_tag: | ||
description: 'The tag to use for the docker image' | ||
value: ${{ jobs.compute_tag.outputs.image_tag }} | ||
|
||
|
||
jobs: | ||
compute_tag: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
image_tag: ${{ steps.set_tag.outputs.tag }} | ||
steps: | ||
- id: set_tag | ||
run: | | ||
branch_name="${{ github.head_ref }}" | ||
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then | ||
echo "tag=latest" >> $GITHUB_OUTPUT | ||
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then | ||
sanitized_branch_name="${branch_name//\//-}" | ||
# If latest_on_noexist is true, set the tag to latest if the tag does not exist. | ||
if [[ "${{ inputs.latest_on_noexist }}" == "true" ]]; then | ||
# Check if the tag exists using docker manifest. | ||
if ! docker manifest inspect beisner/taxpose:${sanitized_branch_name} > /dev/null 2>&1; then | ||
echo "tag=latest" >> $GITHUB_OUTPUT | ||
else | ||
echo "tag=${sanitized_branch_name}" >> $GITHUB_OUTPUT | ||
fi | ||
else | ||
echo "tag=${sanitized_branch_name}" >> $GITHUB_OUTPUT | ||
fi | ||
else | ||
sanitized_branch_name="${GITHUB_REF#refs/heads/}" | ||
sanitized_branch_name="${sanitized_branch_name//\//-}" | ||
echo "tag=${sanitized_branch_name}" >> $GITHUB_OUTPUT | ||
fi |
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
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
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
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
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
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
Oops, something went wrong.