Skip to content

Commit

Permalink
Add github action for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ihabunek committed Jul 3, 2024
1 parent 1c64793 commit 63ec169
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions .vermin
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[vermin]
only_show_violations = yes
show_tips = no
targets = 3.6
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ dev = [
"twine",
"vermin",
]
test = [
"pytest",
]

[project.urls]
"Homepage" = "https://github.com/ihabunek/pdf417-py/"
Expand Down

0 comments on commit 63ec169

Please sign in to comment.