Repository navigation
Copy DLC core config code #49
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: Test suite | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| workflow_call: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: ${{ matrix.os }} py${{ matrix.python-version }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| # Keep in sync w/ DeepLabCut | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| activate-environment: true | |
| - name: Install | |
| run: uv pip install . "pytest>=8" | |
| - name: Test the installed package | |
| run: pytest tests | |
| test-dependency-floor: | |
| name: dependency floor py3.10 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: "3.10" | |
| activate-environment: true | |
| - name: Install the lowest version each dependency declares | |
| run: uv pip install --resolution lowest-direct . "pytest>=8" | |
| - name: Test | |
| run: pytest tests | |
| build: | |
| if: ${{ !startsWith(github.ref, 'refs/tags/') }} | |
| uses: ./.github/workflows/build_release.yml |