Use loguru and appdirs to replace logging and hard coded path #238
Workflow file for this run
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
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) |