Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fc1943s committed Jun 5, 2024
1 parent 59f5779 commit 104af9e
Show file tree
Hide file tree
Showing 136 changed files with 38,558 additions and 27,789 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ jobs:
with:
python-version: '3.12'

- uses: Jimver/[email protected]

- uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- run: pwsh scripts/init.ps1

- run: pwsh scripts/build.ps1
Expand Down
2 changes: 1 addition & 1 deletion apps/builder/Builder.dib
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ let inline persistCodeProject packages modules name hash code = async {
let inline buildCode runtime packages modules outputDir name code = async {
let! fsprojPath = code |> persistCodeProject packages modules name None
let! exitCode = fsprojPath |> buildProject runtime outputDir
if exitCode > 0 then
if exitCode <> 0 then
let! fsprojText = fsprojPath |> SpiralFileSystem.read_all_text_async
trace Critical
(fun () -> "buildCode")
Expand Down
159 changes: 66 additions & 93 deletions apps/builder/Builder.dib.html

Large diffs are not rendered by default.

159 changes: 66 additions & 93 deletions apps/builder/Builder.dib.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions apps/builder/Builder.fs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module Builder =
let workspaceRoot = SpiralFileSystem.get_workspace_root ()

let targetDir =
let targetDir = workspaceRoot </> "target/polyglot/builder" </> name
let targetDir = workspaceRoot </> "target/Builder" </> name
match hash with
| Some hash -> targetDir </> "packages" </> hash
| None -> targetDir
Expand Down Expand Up @@ -127,7 +127,7 @@ module Builder =
let inline buildCode runtime packages modules outputDir name code = async {
let! fsprojPath = code |> persistCodeProject packages modules name None
let! exitCode = fsprojPath |> buildProject runtime outputDir
if exitCode > 0 then
if exitCode <> 0 then
let! fsprojText = fsprojPath |> SpiralFileSystem.read_all_text_async
trace Critical
(fun () -> "buildCode")
Expand Down
11 changes: 9 additions & 2 deletions apps/scheduler/Tasks.dib
Original file line number Diff line number Diff line change
Expand Up @@ -230,18 +230,25 @@ inl get_tasks () : list task_template =
#!spiral

//// test
///! fsharp
///! cuda
///! rust
///! typescript
///! python

types ()
get_tasks ()
|> sm'.format_pretty'
|> sm'.from_std_string
|> sm'.format_debug
|> _assert_string_contains "01"

#!spiral

//// test
///! fsharp
///! cuda
///! rust
///! typescript
///! python

get_tasks ()
|> listm'.try_item 0i32
Expand Down
74 changes: 49 additions & 25 deletions apps/scheduler/Tasks.dib.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

74 changes: 49 additions & 25 deletions apps/scheduler/Tasks.dib.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 104af9e

Please sign in to comment.