Skip to content

Commit 55e42c3

Browse files
anpinGTrunSec
andauthored
Fix ci (#563)
* 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]>
1 parent 59d97bf commit 55e42c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+7610
-12590
lines changed

.github/actions/common-setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ runs:
1111
steps:
1212

1313
- name: Installing Nix
14-
uses: cachix/install-nix-action@v23
14+
uses: cachix/install-nix-action@v30
1515
with:
1616
nix_path: nixpkgs=channel:nixpkgs-unstable
1717
github_access_token: ${{ inputs.SECRET_GITHUB_TOKEN }}
1818

19-
- uses: cachix/cachix-action@v12
19+
- uses: cachix/cachix-action@v15
2020
with:
2121
name: tweag-jupyter
2222
authToken: '${{ inputs.CACHIX_AUTH_TOKEN }}'

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ jobs:
8282
with:
8383
fetch-depth: 0
8484

85+
# Workaround for System.IO.IOException: No space left on device
86+
# https://github.com/actions/runner-images/issues/10699#issuecomment-2402475892
87+
- name: Clean up disk space
88+
run: |
89+
sudo rm -rf /usr/share/dotnet
90+
sudo rm -rf /usr/local/lib/android
91+
sudo rm -rf /opt/ghc
92+
8593
- name: Setup
8694
uses: ./.github/actions/common-setup
8795
with:
@@ -176,8 +184,7 @@ jobs:
176184
- name: Build
177185
run: |
178186
pushd ./example
179-
sed -i -e "s|github:tweag/jupyterWith|path:$PWD/../repo|" flake.nix
180-
nix build
187+
nix build --override-input jupyenv ../repo --show-trace -L
181188
popd
182189
183190
# TODO this should not be dependent on the example kernels tests as the kernel names are different

.github/workflows/update-flake-lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020

2121
- name: Update flake.lock
22-
uses: DeterminateSystems/update-flake-lock@v17
22+
uses: DeterminateSystems/update-flake-lock@v24

.github/workflows/update-poetry-lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: "nix run .#update-poetry-lock"
2222

2323
- name: Create Pull Request
24-
uses: peter-evans/create-pull-request@v4
24+
uses: peter-evans/create-pull-request@v7
2525
with:
2626
commit-message: Update poetry lock files
2727
title: Update poetry lock files

examples/elm/minimal/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
def test_nb(tb):
88
result = tb.execute_cell(0)["outputs"][0]["data"]
99
assert "text/html" in result
10-
assert "elm-div" in result["text/html"]
10+
assert "elm-div-2" in result["text/html"]
1111

1212
if __name__ == '__main__':
1313
test_nb()

examples/julia/minimal/default.nix

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
kernel.julia.minimal-example = {
33
enable = true;
44
override = {
5-
augmentedRegistry = pkgs.fetchFromGitHub {
6-
owner = "CodeDownIO";
7-
repo = "General";
8-
rev = "840f93574326361e2614fc5a4c2413f07840215a";
9-
sha256 = "sha256-UedaTpQwkuSZ/o4kLX/Jg8eDnL5IFI4XfYsJMRwBAKE=";
10-
};
11-
# Precompile = true;
5+
# augmentedRegistry = pkgs.fetchFromGitHub {
6+
# owner = "CodeDownIO";
7+
# repo = "General";
8+
# rev = "840f93574326361e2614fc5a4c2413f07840215a";
9+
# sha256 = "sha256-UedaTpQwkuSZ/o4kLX/Jg8eDnL5IFI4XfYsJMRwBAKE=";
10+
# };
11+
# precompile = true;
1212
};
1313
extraJuliaPackages = [
1414
"Plots"

examples/python/stable/default.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
}: {
66
kernel.python.stable-example = {
77
enable = true;
8-
nixpkgs = self.inputs.nixpkgs-stable;
8+
nixpkgs = import self.inputs.nixpkgs-stable {
9+
inherit system;
10+
overlays = [
11+
self.inputs.poetry2nix.overlays.default
12+
];
13+
};
914
};
1015
}

0 commit comments

Comments
 (0)