Skip to content

Bump mypy from 1.19.1 to 1.20.0 (#41) #311

Bump mypy from 1.19.1 to 1.20.0 (#41)

Bump mypy from 1.19.1 to 1.20.0 (#41) #311

name: Tests
on:
push:
branches:
- main
- 'stable/**'
pull_request:
branches:
- main
- 'stable/**'
schedule:
- cron: '0 1 * * *'
merge_group:
types: [checks_requested]
jobs:
tests:
name: latest version tests (${{ matrix.os }}, ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
include:
- os: macos-latest
python-version: "3.13"
- os: windows-latest
python-version: "3.13"
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Test using tox environment
shell: bash
run: |
tox -e py --parallel --parallel-no-spinner
- name: Run all notebook tests and doctest
if: matrix.python-version == '3.10' || matrix.python-version == '3.11'
shell: bash
run: |
tox -e notebook,doctest
- name: Run notebook tests excluding CPLEX notebook
if: matrix.python-version != '3.10' && matrix.python-version != '3.11'
shell: bash
run: |
tox -e notebook -- docs/how_tos/01_optimization_problem.ipynb docs/how_tos/02_converters_for_optimization_problems.ipynb