Fix slice ordering and add new test data #159
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
| --- | |
| # used for running tests | |
| name: tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request_target: | |
| branches: [main] | |
| jobs: | |
| pre_commit_checks: | |
| # use macos to run pre-commit checks to avoid | |
| # challenges with linux headless display and | |
| # code coverage related to printed stdout. | |
| runs-on: macos-14 | |
| env: | |
| SYNAPSE_AUTH_TOKEN: ${{ secrets.SYNAPSE_AUTH_TOKEN }} | |
| steps: | |
| # checks out the repo | |
| - uses: actions/checkout@v5 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| # add the fork upstream for the remote | |
| - name: Add fork remote | |
| # yamllint disable rule:line-length | |
| run: | | |
| git remote add upstream https://github.com/${{ github.event.pull_request.head.repo.full_name }}.git | |
| # yamllint enable rule:line-length | |
| # run pre-commit | |
| - name: Python setup | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Display configuration for Ubuntu | |
| uses: pyvista/setup-headless-display-action@v4 | |
| with: | |
| qt: true | |
| - uses: pre-commit/action@v3.0.1 | |
| id: pre_commit | |
| # run pre-commit ci lite for automated fixes | |
| - uses: pre-commit-ci/lite-action@v1.1.0 | |
| if: ${{ !cancelled() && steps.pre_commit.outcome == 'failure' }} | |
| run_tests: | |
| strategy: | |
| matrix: | |
| python_version: ["3.11", "3.12"] | |
| os: [ubuntu-24.04, macos-14] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| OS: ${{ matrix.os }} | |
| SYNAPSE_AUTH_TOKEN: ${{ secrets.SYNAPSE_AUTH_TOKEN }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| - name: Python setup | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python_version }} | |
| - name: Display configuration for Ubuntu | |
| if: ${{ matrix.os == 'ubuntu-24.04' }} | |
| uses: pyvista/setup-headless-display-action@v4 | |
| with: | |
| qt: true | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Run pytest | |
| run: uv run --frozen pytest |