async generator, mock manipulate data to visualize simulate force det… #62
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: Step-time Biofeedback Project | |
on: | |
push: | |
branches: | |
- main | |
- feature/* | |
- bug/* | |
pull_request: | |
branches: | |
- main | |
- feature/* | |
- bug/* | |
workflow_dispatch: | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Download and cache virtual environment | |
run: | | |
pip install virtualenv | |
virtualenv env | |
source env/bin/activate | |
pip install -r requirements.txt | |
- name: Install frontend dependencies | |
run: | | |
cd ${{github.workspace}}/frontend | |
npm install | |
npm test | |
- name: Run backend tests | |
run: | | |
source env/bin/activate | |
cd ${{github.workspace}}/backend | |
pytest -s websocket_unit_test.py | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Download and cache virtual environment | |
run: | | |
pip install virtualenv | |
virtualenv env | |
source env/bin/activate | |
pip install -r requirements.txt | |
- name: Lint Python Files | |
run: | | |
cd ${{github.workspace}}/backend | |
pylint *.py || true | |
- name: Lint JavaScript files | |
run: | | |
cd ${{github.workspace}}/frontend | |
npm install | |
npm run lint |