diff --git a/.github/workflows/linux-test.yml b/.github/workflows/linux-test.yml index 6f832478..d6c7c6ff 100644 --- a/.github/workflows/linux-test.yml +++ b/.github/workflows/linux-test.yml @@ -21,20 +21,31 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + include: + - python-version: "3.9" + numpy-version: "numpy<2" + - python-version: "3.10" + numpy-version: "numpy<2" + - python-version: "3.11" + numpy-version: "numpy>=2" + - python-version: "3.12" + numpy-version: "numpy<2" + - python-version: "3.12" + numpy-version: "numpy>=2" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 - uses: jurplel/install-qt-action@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | sudo apt-get install python3-opengl xvfb - pip install numpy wheel - pip install . - pip install .[dev] + python -m pip install "${{ matrix.numpy-version }}" wheel + python -m pip install .[dev] + python -m pip check + python -c "import numpy; print(f'NumPy {numpy.__version__}')" - name: Release Test run: | xvfb-run -s "-screen 0 1024x768x24" pytest --cov tests/*.py -vvv diff --git a/pyproject.toml b/pyproject.toml index 2fea7577..d17c9900 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ classifiers = [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ] -dependencies = ["numba", "numpy < 2.0.0", "scipy", "gymnasium", "pettingzoo", "pybullet", "pyyaml"] +dependencies = ["numba", "numpy", "scipy", "gymnasium", "pettingzoo", "pybullet", "pyyaml"] keywords = ["Reinforcement Learning", "UAVs", "drones", "Quadcopter", "AI", "RL", "Gymnasium"] license = { file="./LICENSE.txt" }