From 1eb4d149abc54dca6703d3c2a6ef17cc035b44ea Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Sep 2024 07:08:13 +0000 Subject: [PATCH 1/6] chore(pyproject.toml): Bump playwright from 1.46.0 to 1.47.0 Bumps [playwright](https://github.com/Microsoft/playwright-python) from 1.46.0 to 1.47.0. - [Release notes](https://github.com/Microsoft/playwright-python/releases) - [Commits](https://github.com/Microsoft/playwright-python/compare/v1.46.0...v1.47.0) --- updated-dependencies: - dependency-name: playwright dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3f64cc5..6a9f35f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ dependencies = [ "python-telegram-bot==21.5", "pydantic==2.9.0", "loguru==0.7.2", - "playwright==1.46.0", + "playwright==1.47.0", ] dynamic = ["version"] From e0a34a027959d1cc219df2e690e88c26bc630be6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 19:18:59 +0000 Subject: [PATCH 2/6] chore(pyproject.toml): Bump pydantic from 2.9.0 to 2.9.2 Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.9.0 to 2.9.2. - [Release notes](https://github.com/pydantic/pydantic/releases) - [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md) - [Commits](https://github.com/pydantic/pydantic/compare/v2.9.0...v2.9.2) --- updated-dependencies: - dependency-name: pydantic dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6a9f35f..21b0ea0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ license = { text = "MIT" } classifiers = ["Programming Language :: Python :: 3"] dependencies = [ "python-telegram-bot==21.5", - "pydantic==2.9.0", + "pydantic==2.9.2", "loguru==0.7.2", "playwright==1.47.0", ] From 31e7555ac35db362c81b56f132fde120d64ed019 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 19:21:48 +0000 Subject: [PATCH 3/6] chore(pyproject.toml): Bump python-telegram-bot from 21.5 to 21.6 Bumps [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot) from 21.5 to 21.6. - [Release notes](https://github.com/python-telegram-bot/python-telegram-bot/releases) - [Changelog](https://github.com/python-telegram-bot/python-telegram-bot/blob/master/CHANGES.rst) - [Commits](https://github.com/python-telegram-bot/python-telegram-bot/compare/v21.5...v21.6) --- updated-dependencies: - dependency-name: python-telegram-bot dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 21b0ea0..1f9a329 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ keywords = ["bot", "scraping", "telegram"] license = { text = "MIT" } classifiers = ["Programming Language :: Python :: 3"] dependencies = [ - "python-telegram-bot==21.5", + "python-telegram-bot==21.6", "pydantic==2.9.2", "loguru==0.7.2", "playwright==1.47.0", From e23566c9843663650b8b3901d68abf50426188fb Mon Sep 17 00:00:00 2001 From: Tim Adler Date: Mon, 23 Sep 2024 22:22:56 +0200 Subject: [PATCH 4/6] feat(github): Report test results in PRs (#9) * Report test results in PRs * Fix artifact download * Debug missing artifacts * Look for artifacts in correct path --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++++-- Makefile | 2 +- 2 files changed, 41 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 090c4c3..7808231 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,9 +5,13 @@ name: Python package on: push: - branches: [ "main" ] + branches: + - "main" + - "develop" pull_request: - branches: [ "main" ] + branches: + - "main" + - "develop" jobs: test: @@ -37,3 +41,37 @@ jobs: gist-id: ${{ vars.GIST_ID_BADGES }} token: ${{ secrets.GIST_TOKEN }} prefix: ${{ github.event.repository.name }}_${{ matrix.python-version }} + + - name: Upload Test Results + if: always() + uses: actions/upload-artifact@v4 + with: + name: Test Results (Python ${{ matrix.python-version }}) + path: report.xml + + report: + name: Comment test results + runs-on: ubuntu-latest + needs: test + permissions: + checks: write + + # only needed unless run with comment_mode: off + pull-requests: write + + # only needed for private repository + contents: read + + # only needed for private repository + issues: read + + if: always() + + steps: + - name: Download Test Results + uses: actions/download-artifact@v4 + + - name: Publish Test Results + uses: EnricoMi/publish-unit-test-result-action@v2 + with: + files: "**/*.xml" diff --git a/Makefile b/Makefile index 64c312d..d89ba11 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ setup: test: pytest --cov=web_watchr --cov-report term-missing -.PHONY: setup-ci +.PHONY: run-ci run-ci: pip install --upgrade pip pip install uv From 6a796de9918d882888b2bb1615f8312346ce0004 Mon Sep 17 00:00:00 2001 From: Tim Adler Date: Mon, 23 Sep 2024 22:26:11 +0200 Subject: [PATCH 5/6] feat(github): Action to automatically version package (#10) --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ pyproject.toml | 10 ++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..efe906e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Release a new version + +on: + push: + branches: + - main + +jobs: + release: + name: Release + runs-on: ubuntu-latest + concurrency: release + permissions: + id-token: write + contents: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Python semantic release + uses: python-semantic-release/python-semantic-release@v9.8.8 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index 1f9a329..d7d8efe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,3 +51,13 @@ Documentation = "https://Emrys-Merlin.github.io/web_watchr/" Repository = "https://github.com/Emrys-Merlin/web_watchr.git" "Bug Tracker" = "https://github.com/Emrys-Merlin/web_watchr/issues" # Changelog = "https://github.com/me/spam/blob/master/CHANGELOG.md" + +[tool.semantic_release] +version_variable = [ + "src/web_watchr/__init__.py:__version__" +] +major_on_zero = true +branch = "main" +upload_to_PyPI = true +upload_to_release = true +build_command = "make setup && make build" From 91b886695124967da5310f4578ea1425b201f0b1 Mon Sep 17 00:00:00 2001 From: Tim Adler Date: Mon, 23 Sep 2024 22:40:45 +0200 Subject: [PATCH 6/6] refactor(github): Prefix dependabot commit messages --- .github/dependabot.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e86bf26..42113f0 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,7 +9,11 @@ updates: directory: "/" # Location of package manifests schedule: interval: "weekly" - + commit-message: + # Prefix all commit messages with "npm: " + prefix: "chore(pyproject.toml): " + + - package-ecosystem: "github-actions" # See documentation for possible values directory: "/" # Location of package manifests schedule: