diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 588980f..69d3440 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -7,17 +7,17 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - - name: Analysing the code with pylint - run: | - pylint bach_generator -d=import-error --fail-under=9 + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Analysing the code with pylint + run: | + pylint bach_generator -d=import-error --fail-under=9 diff --git a/.github/workflows/pytest-unit-tests.yml b/.github/workflows/pytest-unit-tests.yml index a67d322..81caa10 100644 --- a/.github/workflows/pytest-unit-tests.yml +++ b/.github/workflows/pytest-unit-tests.yml @@ -8,24 +8,24 @@ jobs: strategy: max-parallel: 5 matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.10 - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Add conda to system path - run: | - # $CONDA is an environment variable pointing to the root of the miniconda directory - echo $CONDA/bin >> $GITHUB_PATH - - name: Install dependencies - run: | - conda install pip - pip install -e . - - name: Test with pytest - working-directory: tests - run: | - sudo apt install libopenblas-dev # scipy - pip install -r requirements.txt - pytest . + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Add conda to system path + run: | + # $CONDA is an environment variable pointing to the root of the miniconda directory + echo $CONDA/bin >> $GITHUB_PATH + - name: Install dependencies + run: | + conda install pip + pip install -e . + - name: Test with pytest + working-directory: tests + run: | + sudo apt install libopenblas-dev # scipy + pip install -r requirements.txt + pytest . diff --git a/setup.py b/setup.py index 936f4ad..b869081 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name="bach_generator", - version="1.0.2", + version="1.1.0", description="Machine learning based Bach music generator", long_description=project_dir.joinpath("README.md").read_text(encoding="utf-8"), long_description_content_type="text/markdown", @@ -39,6 +39,9 @@ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + # 3.12 doesn't work with setup.py, see: https://stackoverflow.com/questions/73533994/sub-package-not-importable-after-installation pylint: disable=line-too-long + # "Programming Language :: Python :: 3.12", "Topic :: Artistic Software", "Topic :: Desktop Environment", "Topic :: Multimedia",