Update README to include support for .zarr stores and enhance feature… #31
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: Tests | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| branches: [main, dev] | |
| concurrency: | |
| group: tests-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| permissions: | |
| contents: read | |
| checks: write # needed for EnricoMi/publish-unit-test-result-action on PRs | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12"] # add "3.13" if you want | |
| module: | |
| - name: cli | |
| tests: tests/test_cli.py | |
| - name: export | |
| tests: tests/test_export.py | |
| - name: import | |
| tests: tests/test_import.py | |
| - name: info-read | |
| tests: tests/test_info_read.py | |
| - name: subset | |
| tests: tests/test_subset.py | |
| - name: zarr | |
| tests: tests/test_zarr.py | |
| name: tests (${{ matrix.module.name }}) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| # Prefer an action over curl|sh | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies (frozen) | |
| run: uv sync --extra dev --frozen | |
| - name: Run tests with coverage | |
| run: | | |
| uv run pytest -v ${{ matrix.module.tests }} \ | |
| --cov=h5ad \ | |
| --cov-report=term-missing \ | |
| --cov-report=xml \ | |
| --cov-report=html \ | |
| --junitxml=pytest-results-${{ matrix.module.name }}.xml | |
| - name: Publish test results summary | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| if: always() | |
| with: | |
| files: pytest-results-${{ matrix.module.name }}.xml | |
| check_name: Test Results (${{ matrix.module.name }}) | |
| - name: Upload coverage artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: coverage-${{ matrix.module.name }} | |
| path: | | |
| coverage.xml | |
| htmlcov/ | |
| pytest-results-${{ matrix.module.name }}.xml | |
| retention-days: 30 | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| if: always() | |
| with: | |
| files: coverage.xml | |
| fail_ci_if_error: false |