Add tests of propeties module #116
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# python-exiv2 - Python interface to libexiv2 | |
# http://github.com/jim-easterbrook/python-exiv2 | |
# Copyright (C) 2022-23 Jim Easterbrook jim@jim-easterbrook.me.uk | |
# | |
# This program is free software: you can redistribute it and/or modify it under | |
# the terms of the GNU General Public License as published by the Free Software | |
# Foundation, either version 3 of the License, or (at your option) any later | |
# version. | |
# | |
# This program is distributed in the hope that it will be useful, but WITHOUT | |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
# details. | |
# | |
# You should have received a copy of the GNU General Public License along with | |
# this program. If not, see <http://www.gnu.org/licenses/>. | |
name: Run unit tests | |
on: | |
push: | |
paths: | |
- 'src/swig_0.27.0/**' | |
- 'tests/**.py' | |
workflow_dispatch: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] | |
os: [ubuntu-latest] | |
include: | |
- python-version: '3.6' | |
os: ubuntu-20.04 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Install libexiv2 | |
run: | | |
sudo apt-get update | |
sudo apt-get install libexiv2-dev | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: 'x64' | |
- name: Install python-exiv2 | |
run: pip3 install --disable-pip-version-check --user . | |
- name: Get package details | |
run: python3 -m exiv2 | |
- name: Run unit tests | |
run: python3 -m unittest discover tests |