lint: various bugs found by deepcode #1073
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: Spinorama | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.10.6 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10.6" | |
- run: which python | |
- run: pwd | |
- run: ls -la | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
sudo apt-get install -y build-essential | |
pip install -r requirements.txt | |
pip install -r requirements-test.txt | |
- name: Lint with flake8 | |
run: | | |
pip install flake8 | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude spinorama-venv | |
- name: Test metadata file | |
run: | | |
PYTHONPATH=src ./check_meta.py | |
- name: Compilation of cython files | |
run: | | |
PYTHONPATH=src cd src/spinorama && python setup.py build_ext --inplace && ln -s c_compute_scores.cpython-*.so c_compute_scores.so | |
- name: Test with pytest | |
run: | | |
pip install pytest | |
PYTHONPATH=src pytest |