Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@ concurrency:

jobs:
test:
name: Pytest
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v3
- uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}

- name: Setup Docker Compose
uses: KengoTODA/actions-setup-docker-compose@main
Expand All @@ -23,16 +28,18 @@ jobs:
- name: Run pytest
run: just pytest

ruff:
name: Ruff and MyPy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v3
- uses: astral-sh/setup-uv@v6

- name: Run ruff checks
run: just check

- name: Run mypy checks
run: just mypy
run: just mypy

checks-successful:
name: All Checks Passed
runs-on: ubuntu-latest
if: always()
needs: [test]
steps:
- uses: re-actors/[email protected]
with:
jobs: ${{ toJSON(needs) }}
8 changes: 4 additions & 4 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ setup:
[group("tests")]
pytest:
echo "> Running python tests..."
uv run pytest -v
uv run --frozen pytest -v

# Run ruff checks
[group("tests")]
check:
echo "> Running ruff code quality check..."
uv run ruff check
uv run --frozen ruff check
echo "> Running ruff format check..."
uv run ruff format --check
uv run --frozen ruff format --check

# Run mypy type checks
[group("tests")]
mypy:
echo "> Running mypy checks..."
uv run mypy python_ntfy
uv run --frozen mypy python_ntfy

# Run ruff format
[group("tests")]
Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ version = "0.9.1"
description = "An easy-to-use library for the ntfy notification service."
readme = "README.md"
license = "MIT"
requires-python = ">=3.12, <3.14"
requires-python = ">=3.10"
dependencies = ["requests>=2.31.0"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.14",
"Topic :: Communications",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand Down Expand Up @@ -54,9 +56,6 @@ dev = [
"types-setuptools>=75.2.0.20241018,<81.0.0.0",
]

[tool.ruff]
target-version = "py312"

[tool.ruff.lint.isort]
combine-as-imports = true

Expand Down
Loading