Skip to content

Commit

Permalink
wipt
Browse files Browse the repository at this point in the history
  • Loading branch information
supersergiy committed Nov 29, 2023
1 parent d604cf6 commit 51e577c
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 1,220 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,23 @@ jobs:
- "3.10"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get token from Github App
uses: actions/create-github-app-token@v1
id: app_token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PEM }}
# owner is required, otherwise the creds will fail the checkout step
owner: ${{ github.repository_owner }}

- name: Checkout from GitHub
uses: actions/checkout@v4
with:
lfs: 'false'
submodules: 'recursive'
submodules: true
ssh-key: ${{ secrets.git_ssh_key }}
token: ${{ steps.app_token.outputs.token }}

- name: Get changed files
uses: dorny/paths-filter@v2
id: filter
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "zetta_utils/alignment"]
path = zetta_utils/alignment
url = [email protected]:ZettaAI/alignment.git
9 changes: 7 additions & 2 deletions zetta_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ def try_load_train_inference(): # pragma: no cover
except ImportError:
...

def try_load_submodules():
try:
from . import alignment
except ImportError:
...

def load_inference_modules():
from . import (
alignment,
augmentations,
convnet,
mazepa,
Expand All @@ -46,11 +50,11 @@ def load_inference_modules():
from .layer import volumetric
from .layer.volumetric import cloudvol
from .message_queues import sqs
try_load_submodules()


def load_training_modules():
from . import (
alignment,
augmentations,
convnet,
mazepa,
Expand All @@ -61,6 +65,7 @@ def load_training_modules():
)
from .layer import volumetric
from .layer.volumetric import cloudvol
try_load_submodules()


try_load_train_inference()
1 change: 1 addition & 0 deletions zetta_utils/alignment
Submodule alignment added at 057e62
9 changes: 0 additions & 9 deletions zetta_utils/alignment/__init__.py

This file was deleted.

Loading

0 comments on commit 51e577c

Please sign in to comment.