Skip to content

Commit

Permalink
Update workflows to support Python 3.11 and 3.12 (#52)
Browse files Browse the repository at this point in the history
This updates workflow files to support Python 3.11 and 3.12.

Also bumps the setup.py version to 1.1
  • Loading branch information
rbaltrusch authored Jun 16, 2024
1 parent 6b58b98 commit 8b8fe0a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 34 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
40 changes: 20 additions & 20 deletions .github/workflows/pytest-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 8b8fe0a

Please sign in to comment.