Skip to content

Commit

Permalink
New tests (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaihoE authored Jan 18, 2024
1 parent 3a7ef13 commit 4131a4f
Show file tree
Hide file tree
Showing 20 changed files with 14,477 additions and 272 deletions.
69 changes: 16 additions & 53 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,62 +5,25 @@ on:
branches:
- main

jobs:
test-py:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/setup-python@v2
with:
python-version: "3.10"
on: [push]

- name: Setup Python and Run Tests
working-directory: ./src/python
run: |
python3 -m venv .venv
source .venv/bin/activate
pip install pytest maturin patchelf
name: CI

cd tests/
unzip test_demo.zip -d data/
unzip zipped_testdata.zip -d data/
cd ..
maturin develop --release
pytest
test-js:
jobs:
build_and_test:
name: Test Parser Rust
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/parser
steps:
- uses: actions/checkout@v2
- name: Setup Node.js and Build
uses: actions/setup-node@v2
with:
node-version: "18" # Replace with the desired Node.js version
- name: Checkout repository
uses: actions/checkout@v2

- name: Unzip Test Data
working-directory: ./src/node
run: |
cd tests/
unzip zipped_testdata.zip -d data/
cd ../..
- name: unzip demo from py dir
working-directory: ./src/python
run: |
cd tests/
7z x test_demo.zip
cd ../..
- name: Build
working-directory: ./src/node
run: |
yarn global add @napi-rs/cli
yarn build
- name: Set up Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Test
working-directory: ./src/node
run: |
npm install --save-dev jest
npm test
- name: Build in src/parser directory
run: cargo build --release --all-features
29 changes: 0 additions & 29 deletions .github/workflows/perftest.yml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/Protobufs
/target
*.dem
.vscode/
venv
.venv
Expand Down
1 change: 0 additions & 1 deletion src/parser/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/Protobufs
/target
*.dem
.vscode/
venv
.venv
Expand Down
Loading

0 comments on commit 4131a4f

Please sign in to comment.