Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ci #563

Merged
merged 25 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
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
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
Loading