Skip to content

Commit

Permalink
chore: move quarto check to single workflow and run in a separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Dec 28, 2024
1 parent 44aa004 commit e2cb5cd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/docs-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ jobs:
key: docs-${{ github.event.pull_request.base.sha }}
path: docs/**/.jupyter_cache

- name: run quarto check
run: nix develop '.#ibis311' --ignore-environment --keep HOME -c quarto check

- name: build docs
run: nix develop '.#ibis311' --ignore-environment --keep HOME -c just docs-build-all

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ibis-docs-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ jobs:
key: docs-${{ github.event.before }}
path: docs/**/.jupyter_cache

- name: run quarto check
run: nix develop '.#ibis311' --ignore-environment --keep HOME -c quarto check

- name: build api docs
run: nix develop '.#ibis311' --ignore-environment -c just docs-apigen --verbose

Expand Down
25 changes: 22 additions & 3 deletions .github/workflows/ibis-docs-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,28 @@ jobs:
# that for extensions
run: nix develop '.#ibis311' --ignore-environment --keep HOME --keep HYPOTHESIS_PROFILE -c just doctest

check:
runs-on: ubuntu-latest
steps:
- name: install nix
uses: cachix/install-nix-action@v30
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: setup cachix
uses: cachix/cachix-action@v15
with:
name: ibis
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
extraPullNames: nix-community

- name: checkout
uses: actions/checkout@v4

- name: run quarto check
run: nix develop '.#ibis311' --ignore-environment --keep HOME -c quarto check

build:
runs-on: ubuntu-latest
steps:
Expand All @@ -66,9 +88,6 @@ jobs:
key: docs-${{ github.event.pull_request.base.sha }}
path: docs/**/.jupyter_cache

- name: run quarto check
run: nix develop '.#ibis311' --ignore-environment --keep HOME -c quarto check

- name: generate api docs
run: nix develop '.#ibis311' --ignore-environment -c just docs-apigen --verbose

Expand Down

0 comments on commit e2cb5cd

Please sign in to comment.