Skip to content

Commit e4cc623

Browse files
SkalskiPAlexBodnerpre-commit-ci[bot]dependabot[bot]Borda
authored
Trackers 2.1.0 release (#200)
* added rf detr to readme as first example * readme with preview of rf-detr and changed yolov11 to rfdetr in inference * changed example links * changed rfdetr-base to medium * RFDETRBase to RFDETRMedium and index.md+ reid.md yolov11m-640 to rfdetr-medium * resolve deepsort from trackers * resolve deepsort from docs, tests and dependencies * resolve deepsort from workflows * resolve deepsort from workflows * fix(pre_commit): 🎨 auto format pre-commit hooks * skip pytest when there are no tests * remove deepsort from keywords * build(deps): bump torch from 2.6.0+cu124 to 2.8.0 (#171) Bumps [torch](https://github.com/pytorch/pytorch) from 2.6.0+cu124 to 2.8.0. - [Release notes](https://github.com/pytorch/pytorch/releases) - [Changelog](https://github.com/pytorch/pytorch/blob/main/RELEASE.md) - [Commits](https://github.com/pytorch/pytorch/commits/v2.8.0) --- updated-dependencies: - dependency-name: torch dependency-version: 2.8.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump werkzeug from 3.1.3 to 3.1.5 (#173) Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.1.3 to 3.1.5. - [Release notes](https://github.com/pallets/werkzeug/releases) - [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst) - [Commits](pallets/werkzeug@3.1.3...3.1.5) --- updated-dependencies: - dependency-name: werkzeug dependency-version: 3.1.5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump protobuf from 6.30.2 to 6.31.1 (#172) Bumps [protobuf](https://github.com/protocolbuffers/protobuf) from 6.30.2 to 6.31.1. - [Release notes](https://github.com/protocolbuffers/protobuf/releases) - [Commits](protocolbuffers/protobuf@v6.30.2...v6.31.1) --- updated-dependencies: - dependency-name: protobuf dependency-version: 6.31.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Feat/core/bytetrack release (#174) * Added bytetrack without REID * Added lines to install bytetrack and keyword * added docs and type traacker type to sort_utils for using get_iou * fixed spelling mistakes and improved docs * improved doc overview based on Tomasz feedback and fixed pre-commit * added bytetrack to index in mkdocs * renamed high_conf_boxes_threshold to high_conf_det_threshold * build(deps): bump the uv group across 1 directory with 11 updates (#170) --- updated-dependencies: - dependency-name: aiohttp dependency-version: 3.13.3 dependency-type: direct:production dependency-group: uv - dependency-name: uv dependency-version: 0.9.6 dependency-type: direct:development dependency-group: uv - dependency-name: filelock dependency-version: 3.20.3 dependency-type: indirect dependency-group: uv - dependency-name: fonttools dependency-version: 4.60.2 dependency-type: indirect dependency-group: uv - dependency-name: jupyterlab dependency-version: 4.4.8 dependency-type: indirect dependency-group: uv - dependency-name: pillow dependency-version: 11.3.0 dependency-type: indirect dependency-group: uv - dependency-name: pymdown-extensions dependency-version: 10.16.1 dependency-type: indirect dependency-group: uv - dependency-name: requests dependency-version: 2.32.4 dependency-type: indirect dependency-group: uv - dependency-name: tornado dependency-version: '6.5' dependency-type: indirect dependency-group: uv - dependency-name: urllib3 dependency-version: 2.6.3 dependency-type: indirect dependency-group: uv - dependency-name: virtualenv dependency-version: 20.36.1 dependency-type: indirect dependency-group: uv ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps-dev): bump wheel in the uv group across 1 directory (#178) Bumps the uv group with 1 update in the / directory: [wheel](https://github.com/pypa/wheel). Updates `wheel` from 0.45.1 to 0.46.2 - [Release notes](https://github.com/pypa/wheel/releases) - [Changelog](https://github.com/pypa/wheel/blob/main/docs/news.rst) - [Commits](pypa/wheel@0.45.1...0.46.2) --- updated-dependencies: - dependency-name: wheel dependency-version: 0.46.2 dependency-type: direct:development dependency-group: uv ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(pre_commit): ⬆ pre_commit autoupdate (#109) * ⬆️ Bump pypa/gh-action-pypi-publish from 1.12.4 to 1.13.0 Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.12.4 to 1.13.0. - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](pypa/gh-action-pypi-publish@76f52bc...ed0c539) --- updated-dependencies: - dependency-name: pypa/gh-action-pypi-publish dependency-version: 1.13.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore(pre_commit): ⬆ pre_commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](pre-commit/pre-commit-hooks@v5.0.0...v6.0.0) - [github.com/PyCQA/bandit: 1.8.6 → 1.9.3](PyCQA/bandit@1.8.6...1.9.3) - [github.com/astral-sh/ruff-pre-commit: v0.12.2 → v0.14.13](astral-sh/ruff-pre-commit@v0.12.2...v0.14.13) - [github.com/pre-commit/mirrors-mypy: v1.16.1 → v1.19.1](pre-commit/mirrors-mypy@v1.16.1...v1.19.1) * Update .pre-commit-config.yaml --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Piotr Skalski <piotr.skalski92@gmail.com> Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com> * ⬆️ Bump torchvision from 0.21.0+cu124 to 0.23.0 (#131) Bumps [torchvision](https://github.com/pytorch/vision) from 0.21.0+cu124 to 0.23.0. - [Release notes](https://github.com/pytorch/vision/releases) - [Commits](https://github.com/pytorch/vision/commits/0.23.0) --- updated-dependencies: - dependency-name: torchvision dependency-version: 0.23.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ⬆️ Bump torch from 2.6.0+cu124 to 2.8.0 (#130) Bumps [torch](https://github.com/pytorch/pytorch) from 2.6.0+cu124 to 2.8.0. - [Release notes](https://github.com/pytorch/pytorch/releases) - [Changelog](https://github.com/pytorch/pytorch/blob/main/RELEASE.md) - [Commits](https://github.com/pytorch/pytorch/commits/v2.8.0) --- updated-dependencies: - dependency-name: torch dependency-version: 2.8.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Chore Dependabot schedule and grouping (#175) * 🔄 Bump the github-actions group with 3 updates (#179) Bumps the github-actions group with 3 updates: [actions/checkout](https://github.com/actions/checkout), [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) and [actions/create-github-app-token](https://github.com/actions/create-github-app-token). Updates `actions/checkout` from 4.2.2 to 6.0.2 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@11bd719...de0fac2) Updates `astral-sh/setup-uv` from 6.3.1 to 7.2.0 - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](astral-sh/setup-uv@bd01e18...61cb8a9) Updates `actions/create-github-app-token` from 2.0.6 to 2.2.1 - [Release notes](https://github.com/actions/create-github-app-token/releases) - [Commits](actions/create-github-app-token@df432ce...29824e6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.2 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: astral-sh/setup-uv dependency-version: 7.2.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/create-github-app-token dependency-version: 2.2.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ⬆️ Bump numpy from 2.2.5 to 2.2.6 (#180) Bumps [numpy](https://github.com/numpy/numpy) from 2.2.5 to 2.2.6. - [Release notes](https://github.com/numpy/numpy/releases) - [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst) - [Commits](numpy/numpy@v2.2.5...v2.2.6) --- updated-dependencies: - dependency-name: numpy dependency-version: 2.2.6 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ⬆️ Bump supervision from 0.27.0rc0 to 0.28.0rc0 (#181) Bumps [supervision](https://github.com/roboflow/supervision) from 0.27.0rc0 to 0.28.0rc0. - [Release notes](https://github.com/roboflow/supervision/releases) - [Changelog](https://github.com/roboflow/supervision/blob/develop/docs/changelog.md) - [Commits](roboflow/supervision@0.27.0rc0...0.28.0rc0) --- updated-dependencies: - dependency-name: supervision dependency-version: 0.28.0rc0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ⬆️ Bump pytest from 8.3.5 to 9.0.2 (#182) Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.3.5 to 9.0.2. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@8.3.5...9.0.2) --- updated-dependencies: - dependency-name: pytest dependency-version: 9.0.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ⬆️ Bump types-tqdm from 4.67.0.20250513 to 4.67.0.20250809 (#183) Bumps [types-tqdm](https://github.com/typeshed-internal/stub_uploader) from 4.67.0.20250513 to 4.67.0.20250809. - [Commits](https://github.com/typeshed-internal/stub_uploader/commits) --- updated-dependencies: - dependency-name: types-tqdm dependency-version: 4.67.0.20250809 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Remove unused `exclude` rules from pre-commit hooks and simplify ruff arguments (#185) * Update configurations: set Python target version to 3.10 and drop 3.9 from tox envs (#186) * Update linting, testing, and build configurations (#187) * Migrate security rules to Ruff's S [bandit] (#188) * Simplify GitHub workflow tag patterns and rename workflows for clarity (#189) * Simplify GitHub workflow tag patterns and rename workflows for clarity * Fix GitHub workflow tag patterns to correctly match pre-release versions * Add evaluation metrics (benchmarks) to SORT and ByteTrack in README and docs. (#176) * chore(pre_commit): ⬆ pre_commit autoupdate (#191) updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.13 → v0.14.14](astral-sh/ruff-pre-commit@v0.14.13...v0.14.14) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com> * trim dependencies + install docs update (#192) * initial commit * fix(pre_commit): 🎨 auto format pre-commit hooks * clean up pyproject.toml --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * Simplify GH Actions workflows for docs (#190) * Update .github/workflows/publish-docs.yml --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * benchmarks documentation (#193) * initial benchmarks page + README.md updates * fix(pre_commit): 🎨 auto format pre-commit hooks * final benchmarks page changes * update benchmarking page --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * update mkdocs.yml to fix: (#194) DeprecationWarning: Passing extra options directly under `options` is deprecated. Instead, pass them under `options.extra`, and update your templates. Current extra (unrecognized) options: sort_members * update docs building workflow to build docs page on every develop change (#195) * initial commit (#197) * initial commit * fix(pre_commit): 🎨 auto format pre-commit hooks * updated docs page examples * fix(pre_commit): 🎨 auto format pre-commit hooks * updated README.md code snippets * fix(pre_commit): 🎨 auto format pre-commit hooks * updated README.md tracking algorithms table * Add badges to README for project information Added badges for version, downloads, license, Python version, and Discord. * final updates --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * Updated build and release GH actions (#198) * updated build and release GH actions * fix(pre_commit): 🎨 auto format pre-commit hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * include links to example notebooks (#199) * final tests before release with `2.1.0rc1` tag * bump version from `2.1.0rc1` to `2.1.0` --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Alex Bodner <yodabodner@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexander Bodner <61150961+AlexBodner@users.noreply.github.com> Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com> Co-authored-by: Tomasz Stańczyk <47631823+tstanczyk95@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d929a53 commit e4cc623

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1991
-9194
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# These owners will be the default owners for everything in
22
# the repo. They will be requested for review when someone
33
# opens a pull request.
4-
* @soumik12345 @SkalskiP @onuralpszr
4+
* @SkalskiP

.github/dependabot.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ updates:
44
- package-ecosystem: "github-actions"
55
directory: "/"
66
schedule:
7-
interval: "weekly"
7+
interval: "monthly"
88
commit-message:
9-
prefix: ⬆️
10-
target-branch: "main"
9+
prefix: 🔄
10+
groups:
11+
github-actions:
12+
patterns:
13+
- "*"
1114
# Python
1215
- package-ecosystem: "uv"
1316
directory: "/"
1417
schedule:
15-
interval: "daily"
18+
interval: "weekly"
1619
commit-message:
1720
prefix: ⬆️
18-
target-branch: "main"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build Package
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
workflow_call:
8+
inputs:
9+
python-version:
10+
required: false
11+
type: string
12+
default: "3.10"
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: 📥 Checkout the repository
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+
21+
- name: 🐍 Install uv and set Python version ${{ inputs.python-version }}
22+
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
23+
with:
24+
python-version: ${{ inputs.python-version }}
25+
activate-environment: true
26+
27+
- name: 🏗️ Build source and wheel distributions
28+
run: |
29+
uv pip install -r pyproject.toml --group build
30+
uv build
31+
uv run twine check --strict dist/*
32+
33+
- name: 📤 Upload distribution artifacts
34+
uses: actions/upload-artifact@v6
35+
with:
36+
name: dist
37+
path: dist/
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 🧪 Docs Test WorkFlow 📚
1+
name: Docs Test WorkFlow 📚
22

33
on:
44
pull_request:
@@ -14,23 +14,20 @@ jobs:
1414
name: Test docs build
1515
runs-on: ubuntu-latest
1616
timeout-minutes: 10
17-
strategy:
18-
matrix:
19-
python-version: ["3.10"]
2017
steps:
2118
- name: 📥 Checkout the repository
2219
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2320
with:
2421
fetch-depth: 0
2522

26-
- name: 🐍 Install uv and set Python ${{ matrix.python-version }}
23+
- name: 🐍 Install uv and set Python
2724
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
2825
with:
29-
python-version: ${{ matrix.python-version }}
26+
python-version: "3.10"
3027
activate-environment: true
3128

3229
- name: 🏗️ Install dependencies
33-
run: uv pip install -r pyproject.toml --group docs --python-version ${{ matrix.python-version }}
30+
run: uv pip install -r pyproject.toml --group docs
3431

3532
- name: 🧪 Test Docs Build
3633
run: uv run mkdocs build --verbose
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 🔧 Pytest/Test Workflow
1+
name: Pytest/Test Workflow
22

33
on:
44
pull_request:
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os: [ubuntu-latest, windows-latest, macos-latest]
15-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
15+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1616

1717
runs-on: ${{ matrix.os }}
1818
steps:
@@ -28,10 +28,16 @@ jobs:
2828
prune-cache: ${{ matrix.os != 'windows-latest' }}
2929

3030
- name: 🚀 Install Packages
31-
run: uv pip install -r pyproject.toml --group dev --group docs --extra cpu --extra reid
31+
run: uv pip install -r pyproject.toml --group dev
3232

3333
- name: 🧪 Run the Import test
3434
run: uv run python -c "import trackers"
3535

3636
- name: 🧪 Run the Test
37-
run: uv run pytest
37+
shell: bash
38+
run: |
39+
if [ -d test ] && [ "$(find test -type f \( -name 'test_*.py' -o -name '*_test.py' \) | wc -l)" -gt 0 ]; then
40+
uv run pytest
41+
else
42+
echo "No tests found. Skipping pytest."
43+
fi

.github/workflows/publish-docs.yml

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Build and Publish Docs
1+
name: Docs/Build and Publish
22

33
on:
44
push:
55
branches:
6-
- main
6+
- develop
77
workflow_dispatch:
88
release:
99
types: [published]
@@ -20,52 +20,41 @@ permissions:
2020
pull-requests: write # Required for PR comments
2121

2222
jobs:
23-
deploy:
23+
docs-build-deploy:
2424
name: Publish Docs
2525
runs-on: ubuntu-latest
2626
timeout-minutes: 10
27-
strategy:
28-
matrix:
29-
python-version: ["3.10"]
3027
steps:
3128
- name: 📥 Checkout the repository
3229
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3330
with:
3431
fetch-depth: 0
3532

36-
- name: 🐍 Install uv and set Python ${{ matrix.python-version }}
33+
- name: 🐍 Install uv and set Python
3734
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
3835
with:
39-
python-version: ${{ matrix.python-version }}
36+
python-version: "3.10"
4037
activate-environment: true
4138

42-
- name: 🔑 Create GitHub App token (mkdocs)
43-
id: mkdocs_token
44-
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
45-
with:
46-
app-id: ${{ secrets.MKDOCS_APP_ID }}
47-
private-key: ${{ secrets.MKDOCS_PEM }}
48-
owner: roboflow
49-
repositories: mkdocs-material-insiders
50-
5139
- name: 🏗️ Install dependencies
52-
run: |
53-
uv pip install -r pyproject.toml --group docs
54-
# Install mkdocs-material-insiders using the GitHub App token
55-
uv pip install "git+https://roboflow:${{ steps.mkdocs_token.outputs.token }}@github.com/roboflow/mkdocs-material-insiders.git@9.5.49-insiders-4.53.14#egg=mkdocs-material[imaging]"
40+
run: uv pip install -r pyproject.toml --group docs
5641

5742
- name: ⚙️ Configure git for github-actions
5843
run: |
59-
git config --global user.name "github-actions[bot]"
60-
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
44+
git config --global user.name "${{ github.actor }}"
45+
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
6146
6247
- name: 🚀 Deploy Development Docs
63-
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
48+
if: (github.event_name == 'push' && github.ref == 'refs/heads/develop') || github.event_name == 'workflow_dispatch'
49+
env:
50+
MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.GITHUB_TOKEN }}
6451
run: |
65-
MKDOCS_GIT_COMMITTERS_APIKEY=${{ secrets.GITHUB_TOKEN }} uv run mike deploy --push develop
52+
uv run mike deploy --push develop
6653
6754
- name: 🚀 Deploy Release Docs
6855
if: github.event_name == 'release' && github.event.action == 'published'
56+
env:
57+
MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.GITHUB_TOKEN }}
6958
run: |
7059
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
71-
MKDOCS_GIT_COMMITTERS_APIKEY=${{ secrets.GITHUB_TOKEN }} uv run mike deploy --push --update-aliases $latest_tag latest
60+
uv run mike deploy --push --update-aliases $latest_tag latest

.github/workflows/publish-pre-release.yml

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,27 @@ name: Publish Trackers Pre-Releases to PyPI
33
on:
44
push:
55
tags:
6-
- "[0-9]+.[0-9]+[0-9]+.[0-9]+[0-9]+a[0-9]"
7-
- "[0-9]+.[0-9]+[0-9]+.[0-9]+[0-9]+b[0-9]"
8-
- "[0-9]+.[0-9]+[0-9]+.[0-9]+[0-9]+rc[0-9]"
96
- "[0-9]+.[0-9]+[0-9]+.[0-9]+a[0-9]"
107
- "[0-9]+.[0-9]+[0-9]+.[0-9]+b[0-9]"
118
- "[0-9]+.[0-9]+[0-9]+.[0-9]+rc[0-9]"
12-
- "[0-9]+.[0-9]+.[0-9]+a[0-9]"
13-
- "[0-9]+.[0-9]+.[0-9]+b[0-9]"
14-
- "[0-9]+.[0-9]+.[0-9]+rc[0-9]"
159
workflow_dispatch:
10+
pull_request:
11+
branches: [main, develop]
12+
paths:
13+
- '.github/workflows/build-package.yml'
14+
- '.github/workflows/publish-pre-release.yml'
1615

1716
permissions: {} # Explicitly remove all permissions by default
1817

1918
jobs:
19+
build:
20+
permissions:
21+
contents: read
22+
uses: ./.github/workflows/build-package.yml
23+
2024
publish-pre-release:
2125
name: Publish Pre-release Package
26+
needs: build
2227
runs-on: ubuntu-latest
2328
environment:
2429
name: test
@@ -27,26 +32,17 @@ jobs:
2732
permissions:
2833
id-token: write # Required for PyPI publishing
2934
contents: read # Required for checkout
30-
strategy:
31-
matrix:
32-
python-version: ["3.10"]
3335
steps:
34-
- name: 📥 Checkout the repository
35-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
36-
37-
- name: 🐍 Install uv and set Python version ${{ matrix.python-version }}
38-
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
36+
- name: 📥 Download distribution artifacts
37+
uses: actions/download-artifact@v7
3938
with:
40-
python-version: ${{ matrix.python-version }}
41-
activate-environment: true
42-
43-
- name: 🏗️ Build source and wheel distributions
44-
run: |
45-
uv pip install -r pyproject.toml --group build
46-
uv build
47-
uv run twine check --strict dist/*
39+
name: dist
40+
path: dist/
41+
- name: List distribution artifacts
42+
run: ls -lh dist/
4843

4944
- name: 🚀 Publish to PyPi
45+
if: github.event_name != 'pull_request'
5046
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
5147
with:
5248
attestations: true

.github/workflows/publish-release.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,25 @@ name: Publish Trackers Releases to PyPI
33
on:
44
push:
55
tags:
6-
- "[0-9]+.[0-9]+[0-9]+.[0-9]+[0-9]"
76
- "[0-9]+.[0-9]+[0-9]+.[0-9]"
8-
- "[0-9]+.[0-9]+.[0-9]"
97
workflow_dispatch:
8+
pull_request:
9+
branches: [main, develop]
10+
paths:
11+
- '.github/workflows/build-package.yml'
12+
- '.github/workflows/publish-release.yml'
1013

1114
permissions: {} # Explicitly remove all permissions by default
1215

1316
jobs:
17+
build:
18+
permissions:
19+
contents: read
20+
uses: ./.github/workflows/build-package.yml
21+
1422
publish-release:
1523
name: Publish Release Package
24+
needs: build
1625
runs-on: ubuntu-latest
1726
environment:
1827
name: release
@@ -21,26 +30,17 @@ jobs:
2130
permissions:
2231
id-token: write # Required for PyPI publishing
2332
contents: read # Required for checkout
24-
strategy:
25-
matrix:
26-
python-version: ["3.10"]
2733
steps:
28-
- name: 📥 Checkout the repository
29-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
30-
31-
- name: 🐍 Install uv and set Python version ${{ matrix.python-version }}
32-
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
34+
- name: 📥 Download distribution artifacts
35+
uses: actions/download-artifact@v7
3336
with:
34-
python-version: ${{ matrix.python-version }}
35-
activate-environment: true
36-
37-
- name: 🏗️ Build source and wheel distributions
38-
run: |
39-
uv pip install -r pyproject.toml --group build
40-
uv build
41-
uv run twine check --strict dist/*
37+
name: dist
38+
path: dist/
39+
- name: List distribution artifacts
40+
run: ls -lh dist/
4241

4342
- name: 🚀 Publish to PyPi
43+
if: github.event_name != 'pull_request'
4444
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
4545
with:
4646
attestations: true

.pre-commit-config.yaml

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,29 @@ ci:
77

88
repos:
99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v5.0.0
10+
rev: v6.0.0
1111
hooks:
1212
- id: trailing-whitespace
13-
exclude: test/.*\.py
1413
- id: check-executables-have-shebangs
1514
- id: check-toml
1615
- id: check-case-conflict
1716
- id: check-added-large-files
1817
- id: detect-private-key
1918
- id: pretty-format-json
2019
args: ['--autofix', '--no-sort-keys', '--indent=4']
21-
exclude: /.*\.ipynb
2220
- id: end-of-file-fixer
2321
- id: mixed-line-ending
2422

25-
- repo: https://github.com/PyCQA/bandit
26-
rev: '1.8.6'
27-
hooks:
28-
- id: bandit
29-
args: ["-c", "pyproject.toml"]
30-
additional_dependencies: ["bandit[toml]"]
31-
32-
- repo: https://github.com/astral-sh/ruff-pre-commit
33-
rev: v0.12.2
34-
hooks:
35-
- id: ruff
36-
args: [--fix, --exit-non-zero-on-fix]
37-
- id: ruff-format
38-
types_or: [ python, pyi, jupyter]
23+
- repo: https://github.com/astral-sh/ruff-pre-commit
24+
rev: v0.14.14
25+
hooks:
26+
- id: ruff-check
27+
args: [--fix]
28+
- id: ruff-format
29+
types_or: [python, pyi, jupyter]
3930

40-
- repo: https://github.com/pre-commit/mirrors-mypy
41-
rev: 'v1.16.1'
42-
hooks:
43-
- id: mypy
44-
additional_dependencies: [numpy,types-aiofiles]
31+
- repo: https://github.com/pre-commit/mirrors-mypy
32+
rev: 'v1.19.1'
33+
hooks:
34+
- id: mypy
35+
additional_dependencies: [numpy,types-aiofiles]

0 commit comments

Comments
 (0)