Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version #12

Merged
merged 6 commits into from
Sep 23, 2024
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
6 changes: 5 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
42 changes: 40 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ name: Python package

on:
push:
branches: [ "main" ]
branches:
- "main"
- "develop"
pull_request:
branches: [ "main" ]
branches:
- "main"
- "develop"

jobs:
test:
Expand Down Expand Up @@ -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"
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 13 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ keywords = ["bot", "scraping", "telegram"]
license = { text = "MIT" }
classifiers = ["Programming Language :: Python :: 3"]
dependencies = [
"python-telegram-bot==21.5",
"pydantic==2.9.0",
"python-telegram-bot==21.6",
"pydantic==2.9.2",
"loguru==0.7.2",
"playwright==1.46.0",
"playwright==1.47.0",
]
dynamic = ["version"]

Expand Down Expand Up @@ -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"
Loading