Merge pull request #218 from ttngu207/main #110
  
    
      This file contains hidden or 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: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| py_ver: ["3.9", "3.10"] | |
| mysql_ver: ["8.0"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{matrix.py_ver}} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{matrix.py_ver}} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install flake8 "black[jupyter]" | |
| - name: Run style tests | |
| run: | | |
| python_version=${{matrix.py_ver}} | |
| black element_array_ephys --check --verbose --target-version py${python_version//.} | |
| black notebooks --check --verbose --target-version py${python_version//.} |