diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..04b3931 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,28 @@ +name: Run tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-22.04 + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + + steps: + - name: Check out code + 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: | + python -m pip install --upgrade pip + pip install -e ".[test]" + - name: Run tests + run: | + pytest + - name: Validate minimum required version + run: | + vermin toot diff --git a/.vermin b/.vermin new file mode 100644 index 0000000..3691f59 --- /dev/null +++ b/.vermin @@ -0,0 +1,4 @@ +[vermin] +only_show_violations = yes +show_tips = no +targets = 3.6 diff --git a/pyproject.toml b/pyproject.toml index 16f2bb4..7bd67b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,6 +40,9 @@ dev = [ "twine", "vermin", ] +test = [ + "pytest", +] [project.urls] "Homepage" = "https://github.com/ihabunek/pdf417-py/"