Skip to content

Allows override of endpoint via env var #292

Allows override of endpoint via env var

Allows override of endpoint via env var #292

Workflow file for this run

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 }}