Organize colormaps documentation into meaningful categories #508
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: Run tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| run-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| max-parallel: 5 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py', '**/pyproject.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y inkscape --no-install-recommends | |
| pip install --upgrade pip | |
| pip install wheel setuptools numpy cython | |
| # force using latest nibabel | |
| pip install -U nibabel | |
| pip install -e '.[headless]' --no-build-isolation | |
| pip install -e . --no-build-isolation --group dev | |
| python -c 'import cortex; print(cortex.__full_version__)' | |
| - name: Cache Playwright browsers | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: ${{ runner.os }}-playwright-${{ hashFiles('**/pyproject.toml') }} | |
| - name: Install Playwright Chromium | |
| run: playwright install --with-deps --only-shell chromium | |
| - name: Test with pytest | |
| timeout-minutes: 20 # in case webviewer tests hang | |
| run: pytest --cov=./ | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| env_vars: OS,PYTHON | |
| fail_ci_if_error: true | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| verbose: false |