docs: update README and requirements.txt to match codebase #25
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - run: pip install ruff | |
| - name: Ruff check | |
| run: ruff check src/ tests/ | |
| test: | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pytest-cov | |
| - name: Run tests | |
| run: | | |
| pytest \ | |
| tests/test_entropy_parameters.py \ | |
| tests/test_context_model.py \ | |
| tests/test_channel_context.py \ | |
| tests/test_attention_context.py \ | |
| tests/test_model_transforms.py \ | |
| tests/test_integration.py \ | |
| tests/test_performance.py \ | |
| tests/test_parallel_process.py \ | |
| tests/test_colorbar.py \ | |
| tests/test_entropy_model.py \ | |
| tests/test_octree_coding.py \ | |
| -v --cov=src --cov-report=xml -m "not gpu and not slow" | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| file: ./coverage.xml |