Adapt CEBRA-Lens so that compatible with unified CEBRA #48
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: python-package | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-14, windows-latest] | |
| python-version: ["3.10"] | |
| include: | |
| - os: ubuntu-latest | |
| path: ~/.cache/pip | |
| - os: macos-14 | |
| path: ~/Library/Caches/pip | |
| - os: windows-latest | |
| path: ~\AppData\Local\pip\Cache | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| channels: conda-forge,defaults | |
| channel-priority: strict | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install PyTables through Conda | |
| shell: bash -el {0} | |
| run: | | |
| conda install pytables==3.8.0 "numpy<2" | |
| - name: Install dependencies | |
| shell: bash -el {0} | |
| run: | | |
| python -m pip install --upgrade pip setuptools wheel | |
| pip install -r requirements.txt | |
| - name: Run the formatter | |
| shell: bash -el {0} | |
| run: | | |
| make format | |
| - name: Run the spelling detector | |
| shell: bash -el {0} | |
| run: | | |
| make codespell | |
| - name: Check the documentation coverage | |
| shell: bash -el {0} | |
| run: | | |
| make interrogate | |
| - name: Run all pytest tests | |
| shell: bash -el {0} | |
| run: | | |
| pip install pytest | |
| pytest tests/ |