-
-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into more-notebook-pkg-api
- Loading branch information
Showing
141 changed files
with
16,443 additions
and
24,561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
github: fonsp | ||
open_collective: julialang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
name: Browser basic launch test | ||
|
||
# same as the frontend tests | ||
on: | ||
push: | ||
paths-ignore: | ||
- "**.md" | ||
branches: | ||
- main | ||
- release | ||
pull_request: | ||
paths-ignore: | ||
- "**.md" | ||
branches-ignore: | ||
- release | ||
|
||
|
||
jobs: | ||
firefox-test: | ||
runs-on: macos-latest | ||
timeout-minutes: 15 | ||
strategy: | ||
matrix: | ||
browser: ['firefox', 'safari', 'chrome'] | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v4 | ||
|
||
# Makes thes `julia` command available | ||
- uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: "1.10" # our lowest supported version | ||
arch: x64 | ||
|
||
- name: Install Pluto.jl packages | ||
run: | | ||
julia --project=$GITHUB_WORKSPACE -e "using Pkg; Pkg.instantiate()" | ||
- id: setup-firefox | ||
uses: browser-actions/setup-firefox@v1 | ||
with: | ||
firefox-version: 'latest-esr' | ||
|
||
- id: setup-chrome | ||
uses: browser-actions/setup-chrome@v1 | ||
with: | ||
chrome-version: 'latest' | ||
|
||
|
||
- run: | | ||
${{ steps.setup-firefox.outputs.firefox-path }} --version | ||
- run: | | ||
${{ steps.setup-chrome.outputs.chrome-path }} --version | ||
- run: | | ||
julia --project=$GITHUB_WORKSPACE -e 'import Pluto | ||
nb = Pluto.Notebook([ | ||
Pluto.Cell("Text(x)"), | ||
Pluto.Cell(""" | ||
@bind x html"\"" | ||
<script> | ||
currentScript.value = "hello from " + navigator.userAgent | ||
currentScript.dispatchEvent(new CustomEvent("input")) | ||
</script> | ||
"\"" | ||
""") | ||
]) | ||
sesh = Pluto.ServerSession() | ||
Pluto.SessionActions.add(sesh, nb) | ||
@info "Running notebook..." | ||
Pluto.update_save_run!(sesh, nb, nb.cells; run_async=false) | ||
@info "Running notebook done" | ||
get_x() = nb.cells[1].output.body | ||
@info "Value before" get_x() | ||
sesh.options.server.port = 1235 | ||
url = "http://localhost:$(sesh.options.server.port)/edit?secret=$(sesh.secret)&id=$(nb.notebook_id)" | ||
process = Pluto.run!(sesh) | ||
@info "Server started" | ||
sleep(3) | ||
const browser = "${{ matrix.browser }}" | ||
@info "Starting browser..." browser | ||
@assert browser ∈ ["chrome", "firefox", "safari"] | ||
browser_process = @async try | ||
run( | ||
if browser == "chrome" | ||
`${{ steps.setup-chrome.outputs.chrome-path }} --no-first-run $(url)` | ||
elseif browser == "firefox" | ||
`${{ steps.setup-firefox.outputs.firefox-path }} -headless -private-window $(url)` | ||
else | ||
`open -a Safari $(url)` | ||
end | ||
) | ||
catch e | ||
@error "Browser task failed" e | ||
end | ||
tstart = time() | ||
begin | ||
while get_x() == "missing" | ||
@info "Waiting..." | ||
sleep(1) | ||
if time() - tstart > 120 | ||
error("This took too long!") | ||
end | ||
end | ||
@info "yay it worked!" get_x() | ||
end' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,22 +9,37 @@ jobs: | |
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
|
||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: "1.16.1" | ||
- uses: actions/github-script@v5 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: ` | ||
## Try this Pull Request! | ||
Open Julia and type: | ||
\`\`\`jl | ||
julia> import Pkg | ||
julia> Pkg.activate(temp=true) | ||
julia> Pkg.add(url="${context.payload.pull_request.head.repo.html_url}", rev="${context.payload.pull_request.head.ref}") | ||
julia> using ${context.payload.repository.name.replace(/\.jl$/,"")} | ||
\`\`\` | ||
` | ||
}) | ||
require("fs").writeFileSync("context.json", JSON.stringify(context)) | ||
- name: Generate comment | ||
id: generate-comment | ||
run: | | ||
deno eval ' | ||
const context = JSON.parse(await Deno.readTextFile("context.json")); | ||
const body = ` | ||
## Try this Pull Request! | ||
Open Julia and type: | ||
\`\`\`jl | ||
julia> import Pkg | ||
julia> Pkg.activate(temp=true) | ||
julia> Pkg.add(url="${context.payload.pull_request.head.repo.html_url}", rev="${context.payload.pull_request.head.ref}") | ||
julia> using ${context.payload.repository.name.replace(/\.jl$/,"")} | ||
\`\`\` | ||
` | ||
await Deno.writeTextFile("comment.txt", body); | ||
' | ||
- uses: nefrob/[email protected] | ||
with: | ||
content: "comment.txt" | ||
contentIsFilePath: "true" | ||
regex: "jkhsdkjhasdfkjhawkejfbawkehfkajshdfkjahsdf" | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name = "Pluto" | |
uuid = "c3e4b0f8-55cb-11ea-2926-15256bba5781" | ||
license = "MIT" | ||
authors = ["Fons van der Plas <[email protected]>"] | ||
version = "0.19.40" | ||
version = "0.20.3" | ||
|
||
[deps] | ||
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" | ||
|
@@ -42,18 +42,18 @@ Dates = "0, 1" | |
Downloads = "1" | ||
ExpressionExplorer = "0.5, 0.6, 1" | ||
FileWatching = "1" | ||
FuzzyCompletions = "=0.5.4" | ||
FuzzyCompletions = "=0.5.5" | ||
HTTP = "^1.5.2" | ||
HypertextLiteral = "0.7, 0.8, 0.9" | ||
InteractiveUtils = "1" | ||
Logging = "1" | ||
LoggingExtras = "0.4, 1" | ||
MIMEs = "0.1" | ||
MIMEs = "0.1, 1" | ||
Malt = "1.1" | ||
Markdown = "1" | ||
MsgPack = "1.1" | ||
Pkg = "1" | ||
PlutoDependencyExplorer = "~1.0" | ||
PlutoDependencyExplorer = "~1.0, ~1.1" | ||
PrecompileSignatures = "3" | ||
PrecompileTools = "=1.2.1" | ||
REPL = "1" | ||
|
@@ -65,7 +65,7 @@ TOML = "1" | |
Tables = "1" | ||
URIs = "1.3" | ||
UUIDs = "1" | ||
julia = "^1.6" | ||
julia = "^1.10" | ||
|
||
[extras] | ||
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"..." | ||
], | ||
"reporters": [ | ||
"...", | ||
"...", | ||
"parcel-reporter-bundle-manifest" | ||
] | ||
} |
Oops, something went wrong.