Skip to content

Commit

Permalink
♻️ Refactor to latest changes (#18)
Browse files Browse the repository at this point in the history
* ♻️ Refactor to latest changes

* 💚 Fix

* 💚 Attempt fix

* 💚 Fix
  • Loading branch information
falexwolf authored Aug 22, 2024
1 parent 2bed78a commit 7a85ee4
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 16 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on:
push:
branches: [main]
pull_request:
branches: [main, staging]
branches: [main]
repository_dispatch:
types: [build]

jobs:
build:
Expand Down Expand Up @@ -35,18 +37,34 @@ jobs:
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
- run: pip install -U laminci
- run: pip install "laminci@git+https://x-access-token:${{ secrets.LAMIN_BUILD_DOCS }}@github.com/laminlabs/laminci"
- run: sudo apt-get -y install graphviz
- uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
- run: nox -s lint
# - run: nox -s lint
- run: nox -s build
- uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
- uses: voxmedia/github-action-slack-notify-build@v1
if: ${{ success() && github.event_name == 'repository_dispatch' }}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_GITHUB_ACTION }}
with:
channel_id: C05FDBBFJ1F
status: SUCCESS
color: good
- uses: voxmedia/github-action-slack-notify-build@v1
if: ${{ failure() && github.event_name == 'repository_dispatch' }}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_GITHUB_ACTION }}
with:
channel_id: C05FDBBFJ1F
status: FAILURE
color: danger
- uses: nwtgck/[email protected]
with:
publish-dir: "_build/html"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: latest-changes
name: doc-changes

on:
pull_request_target:
Expand All @@ -15,8 +15,9 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install "laminci[doc-changes]@git+https://x-access-token:${{ secrets.LAMIN_BUILD_DOCS }}@github.com/laminlabs/laminci"
- run: pip install "laminci[doc-changes]@git+https://x-access-token:${{ secrets.GH_LAMIN_BUILD_DOCS }}@github.com/laminlabs/laminci"
- run: laminci doc-changes
env:
input_token: ${{ secrets.LAMIN_BUILD_DOCS }}
input_latest_changes_file: lamin-docs/docs/changelog/soon/usecases.md
repo_token: ${{ secrets.GITHUB_TOKEN }}
docs_token: ${{ secrets.GH_LAMIN_BUILD_DOCS }}
changelog_file: lamin-docs/docs/changelog/soon/usecases.md
8 changes: 4 additions & 4 deletions docs/mnist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@
"import lamindb as ln\n",
"from pathlib import Path\n",
"\n",
"ln.settings.transform.stem_uid = \"EgmnhRJ5Hw1S\"\n",
"ln.settings.transform.version = \"1\"\n",
"ln.track()"
"ln.context.uid = \"EgmnhRJ5Hw1S0000\"\n",
"ln.context.track()"
]
},
{
Expand Down Expand Up @@ -131,7 +130,8 @@
"metadata": {},
"outputs": [],
"source": [
"# ln.finish()"
"# save your notebook\n",
"# ln.context.finish()"
]
}
],
Expand Down
8 changes: 3 additions & 5 deletions docs/wandb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,8 @@
"import lamindb as ln\n",
"import wandb\n",
"\n",
"ln.settings.transform.stem_uid = \"tULn4Va2yERp\"\n",
"ln.settings.transform.version = \"1\"\n",
"\n",
"ln.track()"
"ln.context.uid = \"tULn4Va2yERp0000\"\n",
"ln.context.track()"
]
},
{
Expand Down Expand Up @@ -465,7 +463,7 @@
"outputs": [],
"source": [
"# save notebook\n",
"# ln.finish()"
"# ln.context.finish()"
]
}
],
Expand Down

0 comments on commit 7a85ee4

Please sign in to comment.