From fe6832fd8a43907b4a9a254e10734fe3705885b3 Mon Sep 17 00:00:00 2001 From: Pierre Schnizer Date: Thu, 11 Jul 2024 21:44:27 +0200 Subject: [PATCH 1/2] [TASK] versions python 3.9..3.12 and numpy 1 and 2 --- .github/workflows/python-package.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 From 4ef5de788751f4bb14bea901334dd49826cf1ae8 Mon Sep 17 00:00:00 2001 From: Pierre Schnizer Date: Thu, 11 Jul 2024 21:45:39 +0200 Subject: [PATCH 2/2] [TASK] ci status badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) 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