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 a7220af
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
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
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ packages = [
[project.optional-dependencies]
dev = [
"build",
"twine",
]

test = [
"mock",
"pytest",
"pytest-cov",
"twine",
"vermin",
]

Expand Down

0 comments on commit a7220af

Please sign in to comment.