Allows override of endpoint via env var #290
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: unit tests | |
| on: | |
| push: | |
| branches: [develop] | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.platform }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.13"] | |
| platform: | |
| [ | |
| ubuntu-latest, | |
| ubuntu-24.04-arm, | |
| windows-latest, | |
| macos-latest, | |
| macos-15-intel, | |
| ] | |
| package: ["nextmv", "nextmv-gurobipy", "nextmv-scikit-learn"] | |
| steps: | |
| - name: git clone | |
| uses: actions/checkout@v6 | |
| - name: install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "0.9.29" | |
| python-version: ${{ matrix.python-version }} | |
| - name: install the project | |
| run: uv sync --locked --dev | |
| working-directory: ./${{ matrix.package }} | |
| - name: handle nextmv dependency | |
| if: ${{ matrix.package != 'nextmv' }} | |
| run: | | |
| uv remove nextmv | |
| uv add --editable ../nextmv --no-sync | |
| uv sync --locked --dev | |
| working-directory: ./${{ matrix.package }} | |
| - name: unit tests | |
| run: uv run pytest --ignore=tests/integration | |
| working-directory: ./${{ matrix.package }} |