diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 372523e..bd75b28 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -13,14 +13,17 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12" ] + numpy-version: [ "numpy<2.0", "numpy>=2.0" ] + steps: - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python ${{ matrix.python-version }} ${{ matrix.numpy-version }} uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} + numpy-version: ${{ matrix.numpy-version }} cache: 'pip' cache-dependency-path: | **/pyproject.toml @@ -30,7 +33,7 @@ jobs: python -m pip install --upgrade pip wheel python -m pip install flake8 pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install . + pip install '${{ matrix.numpy-version }}' . - name: Install package run: | python -m pip install flake8 pytest diff --git a/README.md b/README.md index 96cdb09..02f245a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![CI](https://github.com/hz-b/bact-device-models/actions/workflows/python-package.yml/badge.svg)](https://github.com/hz-b/bact-device-models/actions/workflows/python-package.yml) + # bact-device-models Device models used in bact