Skip to content

Commit

Permalink
Fix ci (#563)
Browse files Browse the repository at this point in the history
* chore: bumpup CI

* chore: update locks

* update flake inputs and poetry locks

* typescript: 1.0.15 -> 1.0.21

* bash: fix missing kernel

* c: fix missing kernel

* zsh: fix missing kernel

* python: fix stable kernel

* haskell: attempt at fixing the build

* julia: fix revision

* haskell: make compiler happy

* haskell: fork ihaskell kernel derivation

* elm: fix kernel

* refacor poetry overrides

* postgresql: fix missing kernel

* scala: 0.14.0-RC7 -> 0.14.0-RC8

* fix poetry overrides for template

* ci: workaround for no space left on device

* chore: bump flake inputs

* ci: fix template test

* typescript: override missing nodejs-16_x

* chore: remove lib.mdDoc
lib.mdDoc was removed from nixpkgs NixOS/nixpkgs#237557

* python: fix broken setuptools

* ci: override template input instead of sed substitution

* julia: use latest kernel 1.9.4 -> 1.11.1

---------

Co-authored-by: guangtao <[email protected]>
  • Loading branch information
anpin and GTrunSec authored Dec 3, 2024
1 parent 59d97bf commit 55e42c3
Show file tree
Hide file tree
Showing 45 changed files with 7,610 additions and 12,590 deletions.
4 changes: 2 additions & 2 deletions .github/actions/common-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ runs:
steps:

- name: Installing Nix
uses: cachix/install-nix-action@v23
uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
github_access_token: ${{ inputs.SECRET_GITHUB_TOKEN }}

- uses: cachix/cachix-action@v12
- uses: cachix/cachix-action@v15
with:
name: tweag-jupyter
authToken: '${{ inputs.CACHIX_AUTH_TOKEN }}'
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ jobs:
with:
fetch-depth: 0

# Workaround for System.IO.IOException: No space left on device
# https://github.com/actions/runner-images/issues/10699#issuecomment-2402475892
- name: Clean up disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
- name: Setup
uses: ./.github/actions/common-setup
with:
Expand Down Expand Up @@ -176,8 +184,7 @@ jobs:
- name: Build
run: |
pushd ./example
sed -i -e "s|github:tweag/jupyterWith|path:$PWD/../repo|" flake.nix
nix build
nix build --override-input jupyenv ../repo --show-trace -L
popd
# TODO this should not be dependent on the example kernels tests as the kernel names are different
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v17
uses: DeterminateSystems/update-flake-lock@v24
2 changes: 1 addition & 1 deletion .github/workflows/update-poetry-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: "nix run .#update-poetry-lock"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v7
with:
commit-message: Update poetry lock files
title: Update poetry lock files
Expand Down
2 changes: 1 addition & 1 deletion examples/elm/minimal/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
def test_nb(tb):
result = tb.execute_cell(0)["outputs"][0]["data"]
assert "text/html" in result
assert "elm-div" in result["text/html"]
assert "elm-div-2" in result["text/html"]

if __name__ == '__main__':
test_nb()
Expand Down
14 changes: 7 additions & 7 deletions examples/julia/minimal/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
kernel.julia.minimal-example = {
enable = true;
override = {
augmentedRegistry = pkgs.fetchFromGitHub {
owner = "CodeDownIO";
repo = "General";
rev = "840f93574326361e2614fc5a4c2413f07840215a";
sha256 = "sha256-UedaTpQwkuSZ/o4kLX/Jg8eDnL5IFI4XfYsJMRwBAKE=";
};
# Precompile = true;
# augmentedRegistry = pkgs.fetchFromGitHub {
# owner = "CodeDownIO";
# repo = "General";
# rev = "840f93574326361e2614fc5a4c2413f07840215a";
# sha256 = "sha256-UedaTpQwkuSZ/o4kLX/Jg8eDnL5IFI4XfYsJMRwBAKE=";
# };
# precompile = true;
};
extraJuliaPackages = [
"Plots"
Expand Down
7 changes: 6 additions & 1 deletion examples/python/stable/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
}: {
kernel.python.stable-example = {
enable = true;
nixpkgs = self.inputs.nixpkgs-stable;
nixpkgs = import self.inputs.nixpkgs-stable {
inherit system;
overlays = [
self.inputs.poetry2nix.overlays.default
];
};
};
}
Loading

0 comments on commit 55e42c3

Please sign in to comment.