Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI to run unit tests with Python 3.9 and 3.13 #1930

Open
wants to merge 2 commits into
base: maintenance/gramps60
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 13 additions & 17 deletions .github/workflows/gramps-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,15 @@ jobs:
build:

runs-on: ubuntu-22.04

strategy:
matrix:
python-version: ["3.13"]
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: |
sudo apt-get update
Expand All @@ -41,22 +47,11 @@ jobs:
sudo apt-get install librsvg2-common
sudo apt-get install libglib2.0-dev
sudo apt-get install intltool
sudo apt-get install python3-gi
sudo apt-get install python3-cairo
sudo apt-get install python3-gi-cairo
sudo apt-get install python3-bsddb3
sudo apt-get install python3-dev
sudo apt-get install python3-nose
sudo apt-get install python3-mock
sudo apt-get install python3-icu
sudo apt-get install python3-coverage
sudo apt-get install python3-jsonschema
sudo apt-get install libxml2-utils
sudo apt-get install python3-lxml
sudo apt-get install python3-libxml2
sudo apt-get install zlib1g-dev
sudo apt-get install python3-setuptools
python3 -m pip install orjson
sudo apt-get install libgirepository1.0-dev
sudo apt-get install libicu-dev
python3 -m pip install --upgrade pip setuptools build wheel
python3 -m pip install orjson Pillow PyICU PyGObject pycairo jsonschema mock lxml
- name: Install addons
run: |
mkdir -p ~/.gramps/gramps60/plugins/
Expand All @@ -74,4 +69,5 @@ jobs:
- name: Run unit test suite
run: |
export GDK_BACKEND=-
python3 setup.py test
export GRAMPS_RESOURCES=.
python3 -m unittest discover --durations 0 -p "*_test.py"