Skip to content

Commit

Permalink
Add support for python 3.10, 3.11, 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
rbaltrusch committed May 26, 2024
1 parent 79632a5 commit 65c327e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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 }}
Expand All @@ -17,9 +17,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools
pip install pylint
pip install -e .
pip install -r requirements.txt
- name: Analysing the code with pylint
run: |
pylint desktop_shop -d=consider-using-f-string,duplicate-code --fail-under=9.75
19 changes: 6 additions & 13 deletions .github/workflows/pytest-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,21 @@ name: Unit tests
on: [push]

jobs:
build-linux:
build:
runs-on: ubuntu-latest
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@v4
- name: Set up Python ${{ matrix.python-version }}
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 env update --file environment.yml --name test-env
- name: Install desktop_shop
run: |
conda install pip
python -m pip install --upgrade pip
pip install setuptools
pip install -e .
- name: Install test dependencies
# sudo apt-get install xvfb x11-utils gnumeric required for gui tests running in headless mode
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Desktop Environment",
"Topic :: Education",
"Topic :: Education :: Testing",
Expand Down

0 comments on commit 65c327e

Please sign in to comment.