Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
36 changes: 36 additions & 0 deletions .github/workflows/rust-interpreter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Rust Interpreter Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

# cancel any prior runs for this workflow and this PR (or branch)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
rust-interpreter:
name: Test Rust interpreter
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./pdl-live-react
steps:
- uses: actions/checkout@v4
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
# sleep 2 to wait for ollama to be running... hack warning
run: |
npm ci & sudo apt update && sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev patchelf at-spi2-core &
(curl -fsSL https://ollama.com/install.sh | sudo -E sh && sleep 2)
wait
# todo: do this in rust
ollama pull granite3.2:2b
- name: Run interpreter tests
run: npm run test:interpreter
2 changes: 1 addition & 1 deletion .github/workflows/tauri-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
for i in ./demos/beeai/*.py
do pdl compile beeai $i -g -o /tmp/z.json && jq .description /tmp/z.json
done

- name: Test pdl run against production build
env:
DISPLAY: :1
Expand Down
72 changes: 72 additions & 0 deletions pdl-live-react/package-lock.json

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

4 changes: 3 additions & 1 deletion pdl-live-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@
"tauri": "tauri",
"test:quality": "concurrently -n 'lint,types,formatting' 'npm run lint' 'tsc --build --noEmit' \"prettier --check 'tests/**/*.ts' 'src/**/*.{ts,tsx,css}'\"",
"test:ui": "playwright install --with-deps && playwright test",
"test:bee": "until [ -f ./src-tauri/target/debug/pdl ]; do sleep 1; done; for i in ./demos/beeai/*.py; do ./src-tauri/target/debug/pdl compile beeai $i -g --output - | jq; done",
"test:bee": "until [ -f ./src-tauri/target/debug/pdl ]; do sleep 1; done; for i in ./demos/beeai/*.py; do ./src-tauri/target/debug/pdl compile beeai $i -g --output - | jq; done",
"test:interpreter": "cd src-tauri && cargo test",
"types": "(cd .. && python -m src.pdl.pdl --schema > src/pdl/pdl-schema.json) && json2ts ../src/pdl/pdl-schema.json src/pdl_ast.d.ts --unreachableDefinitions && npm run format",
"test": "concurrently -n 'quality,playwright' 'npm run test:quality' 'npm run test:ui'",
"pdl": "./src-tauri/target/debug/pdl",
"view": "npm run pdl view",
"start": "npm run tauri dev"
},
"dependencies": {
"@patternfly/react-code-editor": "^6.1.0",
"@patternfly/react-core": "^6.1.0",
"@tauri-apps/api": "^2.3.0",
"@tauri-apps/plugin-cli": "^2.2.0",
Expand Down
4 changes: 3 additions & 1 deletion pdl-live-react/src-tauri/.taurignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# emacs temp files
*~
\#*\#
.\#*
.\#*
tests/**/*.txt
tests/**/*.pdl
Loading