Support for numpy v2.0 #172
Workflow file for this run
This file contains 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: Run tests and linters | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/tests.yml' | |
- 'pyproject.toml' | |
- '**.py' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
architecture: x64 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools | |
pip install --progress-bar off numpy matplotlib scipy mypy flake8 black | |
- run: flake8 . --show-source --statistics | |
- run: black --check . | |
- run: mypy cmaes | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
numpy-version: ["<2", ">=2.0"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools 'numpy${{ matrix.numpy-version }}' scipy hypothesis | |
pip install --progress-bar off . | |
- run: python -m unittest |