π Update schema graphic & clarify metadata schema vs. datasets schema #750
Workflow file for this run
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
name: build | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- "docs/changelog/soon/**" | |
pull_request: | |
branches: [main] | |
repository_dispatch: | |
types: [build] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
timeout-minutes: 8 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
cache-dependency-path: ".github/workflows/build.yml" | |
- name: cache pre-commit | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }} | |
- run: | | |
pip install "laminci[run-notebooks]@git+https://@github.com/laminlabs/laminci" | |
pip install "lndocs@git+https://x-access-token:${{ secrets.LAMIN_BUILD_DOCS }}@github.com/laminlabs/lndocs" | |
pip install -U dirsync pytest requests | |
sudo apt-get -y install graphviz | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
# - run: nox -s lint | |
- run: nox -s pull_artifacts | |
- run: nox -s docs | |
- run: rm -r ./_build/html/.doctrees # do not want to deploy with cloudflare | |
- uses: cloudflare/wrangler-action@v3 | |
id: cloudflare | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: 472bdad691b4483dea759eadb37110bd | |
command: pages deploy "_build/html" --project-name=lamin-docs | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} |