Skip to content

Commit

Permalink
Test with UV+pytest all python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mangelajo committed Aug 25, 2024
1 parent 33b3f8e commit be29625
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
name: Unit/Functional testing

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:


jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install -y exiftool
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
- uses: actions/checkout@v4

- name: Set up uv
# Install latest uv version using the installer
run: curl -LsSf https://astral.sh/uv/install.sh | sh

- name: Setup exiftool
run: sudo apt-get -y install exiftool

- name: Test with Python ${{ matrix.python-version }}
run: uv run -p ${{ matrix.python-version }} pytest

0 comments on commit be29625

Please sign in to comment.