From 844dce37a325830dc4e1357a745b07557cf69307 Mon Sep 17 00:00:00 2001 From: Tim Adler Date: Tue, 8 Oct 2024 08:45:23 +0200 Subject: [PATCH 1/3] Add python 3.13 to tests --- .github/workflows/ci.yml | 9 ++++++++- .gitignore | 1 + README.md | 8 ++++---- pyproject.toml | 11 ++++++++++- 4 files changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7808231..b210756 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12", "3.13"] steps: - name: Checkout repository @@ -75,3 +75,10 @@ jobs: uses: EnricoMi/publish-unit-test-result-action@v2 with: files: "**/*.xml" + + - name: Fail if any matrix job failed + if: needs.test.result != 'success' + uses: actions/github-script@v3 + with: + script: | + core.setFailed('Some matrix job failed. Please check the logs.') diff --git a/.gitignore b/.gitignore index f99669f..bf66161 100644 --- a/.gitignore +++ b/.gitignore @@ -161,3 +161,4 @@ cython_debug/ .env* +tmp diff --git a/README.md b/README.md index 6fe9110..cdddef4 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ ![GitHub License](https://img.shields.io/github/license/Emrys-Merlin/web_watchr) ![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2FEmrys-Merlin%2Fweb_watchr%2Fmain%2Fpyproject.toml) -| 3.10 | 3.11 | 3.12 | -|------|------|------| -|![tests](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FEmrys-Merlin%2Fec2e4e339a048ca0f0b996517d282a4a%2Fraw%2Fweb_watchr_3.10-junit-tests.json)|![tests](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FEmrys-Merlin%2Fec2e4e339a048ca0f0b996517d282a4a%2Fraw%2Fweb_watchr_3.11-junit-tests.json)|![tests](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FEmrys-Merlin%2Fec2e4e339a048ca0f0b996517d282a4a%2Fraw%2Fweb_watchr_3.12-junit-tests.json)| -|![Endpoint Badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FEmrys-Merlin%2Fec2e4e339a048ca0f0b996517d282a4a%2Fraw%2F272263ce795e0ca0adf06fa6d8aa2fe496a778dd%2Fweb_watchr_3.10-cobertura-coverage.json)|![Endpoint Badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FEmrys-Merlin%2Fec2e4e339a048ca0f0b996517d282a4a%2Fraw%2F272263ce795e0ca0adf06fa6d8aa2fe496a778dd%2Fweb_watchr_3.11-cobertura-coverage.json)|![Endpoint Badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FEmrys-Merlin%2Fec2e4e339a048ca0f0b996517d282a4a%2Fraw%2F272263ce795e0ca0adf06fa6d8aa2fe496a778dd%2Fweb_watchr_3.11-cobertura-coverage.json)| +| 3.10 | 3.11 | 3.12 | 3.13 | +|------|------|------|------| +|![tests](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FEmrys-Merlin%2Fec2e4e339a048ca0f0b996517d282a4a%2Fraw%2Fweb_watchr_3.10-junit-tests.json)|![tests](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FEmrys-Merlin%2Fec2e4e339a048ca0f0b996517d282a4a%2Fraw%2Fweb_watchr_3.11-junit-tests.json)|![tests](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FEmrys-Merlin%2Fec2e4e339a048ca0f0b996517d282a4a%2Fraw%2Fweb_watchr_3.12-junit-tests.json)|![tests](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FEmrys-Merlin%2Fec2e4e339a048ca0f0b996517d282a4a%2Fraw%2Fweb_watchr_3.13-junit-tests.json)| +|![Endpoint Badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FEmrys-Merlin%2Fec2e4e339a048ca0f0b996517d282a4a%2Fraw%2F272263ce795e0ca0adf06fa6d8aa2fe496a778dd%2Fweb_watchr_3.10-cobertura-coverage.json)|![Endpoint Badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FEmrys-Merlin%2Fec2e4e339a048ca0f0b996517d282a4a%2Fraw%2F272263ce795e0ca0adf06fa6d8aa2fe496a778dd%2Fweb_watchr_3.11-cobertura-coverage.json)|![Endpoint Badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FEmrys-Merlin%2Fec2e4e339a048ca0f0b996517d282a4a%2Fraw%2F272263ce795e0ca0adf06fa6d8aa2fe496a778dd%2Fweb_watchr_3.12-cobertura-coverage.json)|![Endpoint Badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FEmrys-Merlin%2Fec2e4e339a048ca0f0b996517d282a4a%2Fraw%2F272263ce795e0ca0adf06fa6d8aa2fe496a778dd%2Fweb_watchr_3.13-cobertura-coverage.json)| # WebWatchr diff --git a/pyproject.toml b/pyproject.toml index 0980aac..1cb89c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,16 @@ readme = "README.md" requires-python = ">=3.10" keywords = ["bot", "scraping", "telegram"] license = { text = "MIT" } -classifiers = ["Programming Language :: Python :: 3"] +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", +] dependencies = [ "python-telegram-bot==21.6", "pydantic==2.9.2", From 294deb4414ae50a3a8f101b040d026646c14f302 Mon Sep 17 00:00:00 2001 From: Tim Adler Date: Mon, 21 Oct 2024 20:56:16 +0200 Subject: [PATCH 2/3] Bump playwright --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1cb89c5..43966e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ dependencies = [ "python-telegram-bot==21.6", "pydantic==2.9.2", "loguru==0.7.2", - "playwright==1.47.0", + "playwright==1.48.0", ] dynamic = ["version"] From 40a40696b3ef64f0b564c70af6599fabd9b6fce8 Mon Sep 17 00:00:00 2001 From: Tim Adler Date: Mon, 21 Oct 2024 20:58:24 +0200 Subject: [PATCH 3/3] Bump version --- src/web_watchr/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web_watchr/__init__.py b/src/web_watchr/__init__.py index 7ca3ed7..27592f9 100644 --- a/src/web_watchr/__init__.py +++ b/src/web_watchr/__init__.py @@ -3,6 +3,6 @@ from .watchr import Watchr __all__ = ["Watchr"] -__version__ = "0.2.1" +__version__ = "0.3.0" logger.disable("website_monitoring_bot")