Skip to content

🎨 style: use ruff format #251

🎨 style: use ruff format

🎨 style: use ruff format #251

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
Test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
name: Run Unittests and Examples (Python ${{ matrix.python-version }})
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements_dev.txt
- name: Build
run: |
pip install -e .
- name: Run unit tests
run: |
pytest
- name: Run examples
run: |
EXAMPLES="examples/*.py"
for example_file in $EXAMPLES
do
echo "=================================================="
echo "Processing $example_file file..."
echo "=================================================="
python $example_file || exit 1
done
echo "running native interpreter example"
(cd examples/native_interpreter; ./build_it.sh && python use_interpreter.py)