Skip to content

CI: Update actions, test Python 3.12, run weekly #92

CI: Update actions, test Python 3.12, run weekly

CI: Update actions, test Python 3.12, run weekly #92

Workflow file for this run

#
# Run unit tests.
#
name: Test
on:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 6 * * 1'
jobs:
pytest:
name: Run Tests
runs-on: ubuntu-22.04
timeout-minutes: 30
strategy:
matrix:
python-version:
- "3.7"
- "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: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-test-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-test-
- name: Download Samples
run: |
make samples-download
- name: Install
run: |
pip install -e .
- name: Run in debug and color mode
run: |
find exif-samples-master -name *.tiff -o -name *.jpg -o -name *.heif | xargs EXIF.py -dc
- name: Compare image processing output
run: |
find exif-samples-master -name *.tiff -o -name *.jpg -o -name *.heif | sort -f | xargs EXIF.py > exif-samples-master/dump_test
diff -Z --side-by-side --suppress-common-lines exif-samples-master/dump exif-samples-master/dump_test