Skip to content

update test values #2532

update test values

update test values #2532

name: Python Package using Conda
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v4
# 1) Install Conda (Miniforge) + activate an env
- name: Set up Conda (Miniforge) + Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Miniforge3
miniforge-version: latest
auto-update-conda: true
activate-environment: ci
python-version: ${{ matrix.python-version }}
channels: conda-forge,defaults
channel-priority: strict
# Important: ensures "conda activate ci" applies to all run steps
- name: Show conda info
shell: bash -l {0}
run: |
conda info
python --version
which python || where python
# 2) Install uv (so "uv pip ..." works)
- name: Set up uv
uses: astral-sh/setup-uv@v3
# 3) Install dependencies
- name: Install dependencies
shell: bash -l {0}
run: |
conda install -y -c conda-forge glpk cartopy
uv pip install --system -r requirements.lock
pip install -e .
pip install highspy
- name: Lint with flake8
shell: bash -l {0}
run: |
conda install -y flake8
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
shell: bash -l {0}
run: |
conda install -y pytest
pytest -vv tests/test_run.py