-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
034ac2b
commit 5b9f73c
Showing
39 changed files
with
1,700 additions
and
125 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Publish Python distribution to PyPI | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
name: Build distribution | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build a binary wheel and a source tarball | ||
run: python3 -m build | ||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
|
||
publish-to-pypi: | ||
name: >- | ||
Publish Python distribution to PyPI | ||
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes | ||
needs: | ||
- build | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/deepcubeai_2 | ||
permissions: | ||
id-token: write # IMPORTANT: mandatory for trusted publishing | ||
|
||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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,10 +1,11 @@ | ||
.vscode | ||
# data/ | ||
saved_env_models/ | ||
saved_heur_models/ | ||
.DS_Store | ||
job_run_outputs/ | ||
._.DS_Store | ||
*.pyc | ||
results/ | ||
__pycache__ | ||
deepcubeai/environments/sokoban_data/goal_states.pkl | ||
deepcubeai/environments/sokoban_data/goal_states.pkl | ||
dist/ | ||
deepcubeai.egg-info/ |
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,7 @@ | ||
include README.md | ||
include LICENSE | ||
include deepcubeai/scripts/*.sh | ||
recursive-include deepcubeai/data * | ||
recursive-include deepcubeai/environments/sokoban_data * | ||
recursive-include deepcubeai/environments/puzzlegen/data * | ||
global-exclude *.py[cod] __pycache__ .DS_Store .git .vscode |
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,11 @@ | ||
import re | ||
import warnings | ||
|
||
__version__ = "0.1.0" | ||
__author__ = "Misagh Soltani" | ||
|
||
warnings.filterwarnings( | ||
"ignore", | ||
category=FutureWarning, | ||
message=re.escape("You are using `torch.load` with `weights_only=False` (the current default " | ||
"value), which uses the default pickle module implicitly.")) |
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 @@ | ||
This folder contains the code for IceSlider and DigitJump, from [puzzlegen](https://github.com/martius-lab/puzzlegen). |
Empty file.
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,17 @@ | ||
import os | ||
import subprocess | ||
import sys | ||
|
||
|
||
def main(): | ||
dcai_dir = os.path.dirname(os.path.abspath(__file__)) | ||
print(dcai_dir) | ||
parent_dir = os.path.dirname(dcai_dir) | ||
|
||
# Forward all arguments to the pipeline script, running from the new directory | ||
pipeline_script = os.path.join(dcai_dir, 'scripts', 'pipeline.sh') | ||
subprocess.run([pipeline_script] + sys.argv[1:], cwd=parent_dir) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
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.