new package #308
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: Run all tests on git push and PR's. | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
python-tests: | |
name: Run Back End Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9.20' | |
- name: Install dependencies | |
run: | | |
pip uninstall numpy qutip | |
pip install -r requirements.txt | |
- name: Run Tests | |
run: | | |
python -c "import sys; print(sys.path)" | |
PYTHONPATH=$PYTHONPATH:${{ github.workspace }} python3 backend/test_evolution.py | |
env: | |
PYTHONPATH: ${{ github.workspace }} | |
javascript-tests: | |
name: Run Front End Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: npm install | |
- name: Run Jest Tests | |
run: | | |
npx jest "frontend-interface/components/__tests__/NoiseModel.test.js" | |
npx jest "frontend-interface/components/__tests__/DragAndDropGrid.test.js" |