Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/actions/common-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ runs:
using: "composite"
steps:

- name: Installing Nix
uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
#- name: Installing Nix
# uses: cachix/install-nix-action@v16
# with:
# nix_path: nixpkgs=channel:nixpkgs-unstable

- uses: cachix/cachix-action@v10
with:
name: tweag-jupyter
authToken: '${{ inputs.CACHIX_AUTH_TOKEN }}'
#- uses: cachix/cachix-action@v10
# with:
# name: tweag-jupyter
# authToken: '${{ inputs.CACHIX_AUTH_TOKEN }}'
66 changes: 36 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:

build:
name: Build jupyterlab (no kernels)
runs-on: ubuntu-latest
#runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]

outputs:
kernels: ${{ steps.kernels.outputs.kernels }}
Expand All @@ -20,10 +21,10 @@ jobs:
with:
fetch-depth: 0

- name: Setup
uses: ./.github/actions/common-setup
with:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_TWEAG_JUPYTER_NIX_AUTH_TOKEN }}
#- name: Setup
# uses: ./.github/actions/common-setup
# with:
# CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_TWEAG_JUPYTER_NIX_AUTH_TOKEN }}

- name: List all available kernels
id: kernels
Expand All @@ -41,7 +42,8 @@ jobs:
build-kernel:
name: Build ${{ matrix.kernel }} kernel
needs: build
runs-on: ubuntu-latest
#runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]

strategy:
fail-fast: false
Expand All @@ -53,10 +55,10 @@ jobs:
with:
fetch-depth: 0

- name: Setup
uses: ./.github/actions/common-setup
with:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_TWEAG_JUPYTER_NIX_AUTH_TOKEN }}
#- name: Setup
# uses: ./.github/actions/common-setup
# with:
# CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_TWEAG_JUPYTER_NIX_AUTH_TOKEN }}

- name: Build ${{ matrix.kernel }} kernel
run: |
Expand All @@ -76,17 +78,18 @@ jobs:
build-all-kernels:
name: Build all kernels
needs: build-kernel
runs-on: ubuntu-latest
#runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup
uses: ./.github/actions/common-setup
with:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_TWEAG_JUPYTER_NIX_AUTH_TOKEN }}
#- name: Setup
# uses: ./.github/actions/common-setup
# with:
# CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_TWEAG_JUPYTER_NIX_AUTH_TOKEN }}

- name: Build all kernels
run: |
Expand All @@ -95,17 +98,18 @@ jobs:
build-devshell:
name: Build devshell
needs: build-kernel
runs-on: ubuntu-latest
#runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup
uses: ./.github/actions/common-setup
with:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_TWEAG_JUPYTER_NIX_AUTH_TOKEN }}
#- name: Setup
# uses: ./.github/actions/common-setup
# with:
# CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_TWEAG_JUPYTER_NIX_AUTH_TOKEN }}

- name: Build all kernels
run: |
Expand All @@ -114,17 +118,18 @@ jobs:
build-docs:
name: Build docs
needs: build-kernel
runs-on: ubuntu-latest
#runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup
uses: ./.github/actions/common-setup
with:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_TWEAG_JUPYTER_NIX_AUTH_TOKEN }}
#- name: Setup
# uses: ./.github/actions/common-setup
# with:
# CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_TWEAG_JUPYTER_NIX_AUTH_TOKEN }}

- name: Build all kernels
run: |
Expand Down Expand Up @@ -153,18 +158,19 @@ jobs:
template:
name: Test a template
needs: build-kernel
runs-on: ubuntu-latest
#runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]

steps:
- uses: actions/checkout@v3
with:
path: repo
fetch-depth: 0

- name: Setup
uses: ./repo/.github/actions/common-setup
with:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_TWEAG_JUPYTER_NIX_AUTH_TOKEN }}
#- name: Setup
# uses: ./repo/.github/actions/common-setup
# with:
# CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_TWEAG_JUPYTER_NIX_AUTH_TOKEN }}

- name: Initialize template
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/daily-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:

test-template:
name: Test template
runs-on: ubuntu-latest
#runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:

jobs:
lockfile:
runs-on: ubuntu-latest
#runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]
steps:
- uses: actions/checkout@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-poetry-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:

jobs:
poetry-update:
runs-on: ubuntu-latest
#runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]

steps:
- uses: actions/checkout@v3
Expand Down