Skip to content

Commit b10971e

Browse files
authored
Merge pull request #3207 from motioneye-project/beta
Merge new beta to main branch
2 parents b3ed732 + 98bbef5 commit b10971e

File tree

125 files changed

+10298
-4614
lines changed

Some content is hidden

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

125 files changed

+10298
-4614
lines changed

.github/workflows/docker.yml

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,20 @@ concurrency:
66
group: ${{ github.workflow }}-${{ github.ref }}
77
cancel-in-progress: true
88

9-
permissions:
10-
contents: read
9+
permissions: {}
1110

1211
jobs:
1312
docker:
1413
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login
1514
runs-on: ubuntu-24.04
1615

1716
permissions:
17+
contents: read
1818
packages: write
1919

2020
steps:
21-
- uses: actions/checkout@v4
22-
23-
- name: Docker meta
21+
- uses: docker/metadata-action@v5
2422
id: meta
25-
uses: docker/metadata-action@v5
2623
with:
2724
images: | # add potential Docker Hub image
2825
ghcr.io/${{ github.repository_owner }}/motioneye
@@ -33,16 +30,10 @@ jobs:
3330
type=semver,pattern={{major}}
3431
3532
- uses: docker/setup-qemu-action@v3
36-
- uses: docker/setup-buildx-action@v3
37-
38-
- name: Cache Docker layers
39-
uses: actions/cache@v4
4033
with:
41-
path: |
42-
${{ runner.temp }}/.buildx-cache
43-
key: ${{ runner.os }}-buildx-${{ github.sha }}
44-
restore-keys: |
45-
${{ runner.os }}-buildx-
34+
cache-image: false
35+
36+
- uses: docker/setup-buildx-action@v3
4637

4738
#- name: Login to Docker Hub
4839
# uses: docker/login-action@v3
@@ -59,22 +50,10 @@ jobs:
5950
username: ${{ github.actor }}
6051
password: ${{ github.token }}
6152

62-
- name: Build
63-
uses: docker/build-push-action@v6
53+
- uses: docker/build-push-action@v6
6454
with:
65-
context: .
6655
file: ./docker/Dockerfile
6756
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7,linux/riscv64
6857
push: ${{ github.event_name == 'push' && github.repository == 'motioneye-project/motioneye' && steps.meta.outputs.tags != null }}
6958
tags: ${{ steps.meta.outputs.tags }}
7059
labels: ${{ steps.meta.outputs.labels }}
71-
#build-args: |
72-
# KEY1=Value1
73-
# KEY2=Value2
74-
cache-from: type=local,src=${{ runner.temp }}/.buildx-cache
75-
cache-to: type=local,dest=${{ runner.temp }}/.buildx-cache-new
76-
77-
- name: Move cache
78-
run: |
79-
rm -rf ${{ runner.temp }}/.buildx-cache
80-
mv ${{ runner.temp }}/.buildx-cache-new ${{ runner.temp }}/.buildx-cache

.github/workflows/pre-commit-autoupdate.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,28 @@ name: pre-commit-autoupdate
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '42 15 * * *'
6+
- cron: 42 15 * * *
77

88
concurrency:
99
group: ${{ github.workflow }}-${{ github.ref }}
1010
cancel-in-progress: true
1111

12-
permissions:
13-
pull-requests: write
12+
permissions: {}
1413

1514
jobs:
1615
pre-commit-autoupdate:
1716
runs-on: ubuntu-24.04
1817
steps:
19-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
2019
with:
2120
ref: dev
2221
# https://github.com/peter-evans/create-pull-request/issues/48
2322
token: ${{ secrets.GH_PAT }}
24-
- uses: actions/setup-python@v5
23+
- uses: actions/setup-python@v6
2524
with:
26-
python-version: '3.x'
25+
python-version: 3.x
2726
check-latest: true
28-
- env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
run: |
27+
- run: |
3128
branch_exists=0
3229
git fetch origin pre-commit-autoupdate && branch_exists=1
3330
if (( branch_exists ))
@@ -50,5 +47,6 @@ jobs:
5047
else
5148
git commit -m '[CI/CD] pre-commit autoupdate'
5249
git push origin pre-commit-autoupdate
50+
export GH_TOKEN='${{ secrets.GH_PAT }}'
5351
gh pr create -B dev -H pre-commit-autoupdate -f -l 'CI/CD'
5452
fi

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login
1717
runs-on: ubuntu-24.04
1818
steps:
19-
- uses: actions/checkout@v4
20-
- uses: actions/setup-python@v5
19+
- uses: actions/checkout@v5
20+
- uses: actions/setup-python@v6
2121
with:
2222
python-version: '3.x'
2323
check-latest: true

.github/workflows/pypi_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
release:
1010
runs-on: ubuntu-24.04
1111
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-python@v5
12+
- uses: actions/checkout@v5
13+
- uses: actions/setup-python@v6
1414
with:
1515
python-version: '3.x'
1616
check-latest: true

.github/workflows/python_safety.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
runs-on: ubuntu-24.04
1616
steps:
1717
- run: echo -e '[global]\nbreak-system-packages=true' | sudo tee /etc/pip.conf # error: externally-managed-environment
18-
- uses: actions/checkout@v4
19-
- uses: actions/setup-python@v5
18+
- uses: actions/checkout@v5
19+
- uses: actions/setup-python@v6
2020
with:
2121
python-version: 3.x
2222
check-latest: true

.github/workflows/shellcheck.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ jobs:
1616
steps:
1717
- name: Install xz-utils
1818
run: |
19+
command -v xz && exit 0
1920
sudo apt-get -q update
2021
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq --no-install-recommends install xz-utils
21-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2223
- name: Download shellcheck
2324
run: |
24-
curl -sSfL "$(curl -sSf 'https://api.github.com/repos/koalaman/shellcheck/releases/latest' | mawk -F\" '/"browser_download_url.*\.linux\.x86_64\.tar\.xz"/{print $4;exit}')" -o shellcheck.tar.xz
25+
curl -sSfLo shellcheck.tar.xz "$(curl -sSf 'https://api.github.com/repos/koalaman/shellcheck/releases/latest' | mawk -F\" '/"browser_download_url.*\.linux\.x86_64\.tar\.xz"/{print $4;exit}')"
2526
tar --wildcards --strip-components=1 -xf shellcheck.tar.xz '*/shellcheck'
2627
rm shellcheck.tar.xz
2728
- name: Run shellcheck

.github/workflows/test_python.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,21 @@ jobs:
2424
runs-on: ${{ matrix.dist }}
2525
name: "Test on ${{ matrix.dist }}"
2626
steps:
27-
- uses: actions/checkout@v4
28-
- uses: actions/setup-python@v5
27+
- uses: actions/checkout@v5
28+
- uses: actions/setup-python@v6
2929
with:
3030
python-version: ${{ matrix.python }}
3131
- if: matrix.dist == 'ubuntu-22.04' || matrix.dist == 'ubuntu-24.04'
3232
run: sudo apt-mark hold grub-efi-amd64-signed # GRUB does not always find the drive it was configured for
3333
- name: Ubuntu Noble workarounds
3434
if: matrix.dist == 'ubuntu-24.04' || matrix.dist == 'ubuntu-24.04-arm'
3535
run: |
36-
# https://github.com/actions/runner-images/pull/9956
37-
sudo apt-get autopurge needrestart
36+
# new firefox package pre-installation script subprocess returned error exit status 1
37+
sudo apt-get autopurge firefox
3838
# error: externally-managed-environment
3939
echo -e '[global]\nbreak-system-packages=true' | sudo tee /etc/pip.conf
40+
# ERROR: Cannot uninstall pip 24.0, RECORD file not found. Hint: The package was installed by debian.
41+
- run: sudo DEBIAN_FRONTEND="noninteractive" apt-get -qq autopurge python3-pip python3-setuptools python3-wheel
4042
- run: sudo apt-get -q update
4143
- run: sudo DEBIAN_FRONTEND="noninteractive" apt-get -qq --no-install-recommends dist-upgrade
4244
- run: sudo DEBIAN_FRONTEND="noninteractive" apt-get -qq --no-install-recommends install

.github/workflows/ubuntu_build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ jobs:
2323
- name: Ubuntu Noble workarounds
2424
if: matrix.dist == 'ubuntu-24.04' || matrix.dist == 'ubuntu-24.04-arm'
2525
run: |
26-
# https://github.com/actions/runner-images/pull/9956
27-
# ERROR: Cannot uninstall pip 24.0, RECORD file not found. Hint: The package was installed by debian.
2826
# new firefox package pre-installation script subprocess returned error exit status 1
29-
sudo apt-get autopurge needrestart python3-pip python3-setuptools python3-wheel firefox
27+
sudo apt-get autopurge firefox
3028
# error: externally-managed-environment
3129
echo -e '[global]\nbreak-system-packages=true' | sudo tee /etc/pip.conf
30+
# ERROR: Cannot uninstall pip 24.0, RECORD file not found. Hint: The package was installed by debian.
31+
- run: sudo DEBIAN_FRONTEND="noninteractive" apt-get -qq autopurge python3-pip python3-setuptools python3-wheel python3-dev
3232
- run: sudo apt-get -q update
3333
- run: sudo DEBIAN_FRONTEND=noninteractive apt-get -qq --no-install-recommends dist-upgrade
3434
- run: sudo DEBIAN_FRONTEND=noninteractive apt-get -qq --no-install-recommends install
35-
ca-certificates curl python3-dev
35+
ca-certificates curl python3
3636
- run: curl -sSfO 'https://bootstrap.pypa.io/get-pip.py'
3737
- run: sudo python3 get-pip.py
3838
- run: sudo python3 -m pip install --upgrade pip setuptools wheel

.github/workflows/update_locales.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,16 @@ concurrency:
66
group: ${{ github.workflow }}-${{ github.ref }}
77
cancel-in-progress: true
88

9-
permissions:
10-
contents: read
11-
12-
defaults:
13-
run:
14-
shell: sh
9+
permissions: {}
1510

1611
jobs:
1712
update_locales:
18-
# Skip for forks and dependabot which have no access to secrets (PAT)
19-
if: github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]'
13+
# Skip for forks which have no access to secrets (PAT)
14+
if: github.event.pull_request.head.repo.fork == false
2015
runs-on: ubuntu-24.04
2116
steps:
2217

23-
- uses: actions/setup-python@v5
18+
- uses: actions/setup-python@v6
2419
with:
2520
python-version: '3.x'
2621
check-latest: true
@@ -32,7 +27,7 @@ jobs:
3227
sudo apt-get -q update
3328
sudo DEBIAN_FRONTEND='noninteractive' apt-get -qq --no-install-recommends install gettext
3429
35-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v5
3631
with:
3732
ref: ${{ github.head_ref }}
3833
# https://github.com/peter-evans/create-pull-request/issues/48

.pre-commit-config.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
repos:
1111
- repo: https://github.com/pre-commit/pre-commit-hooks
12-
rev: v5.0.0
12+
rev: v6.0.0
1313
hooks:
1414
- id: check-builtin-literals
1515
- id: check-executables-have-shebangs
@@ -20,13 +20,13 @@ repos:
2020
- id: mixed-line-ending
2121
- id: trailing-whitespace
2222
- repo: https://github.com/PyCQA/bandit
23-
rev: 1.8.3
23+
rev: 1.8.6
2424
hooks:
2525
- id: bandit
2626
args:
2727
- --skip=B104,B105,B108,B110,B301,B310,B321,B324,B402,B403,B404,B602,B603,B604,B605,B607,B701
2828
- repo: https://github.com/python/black
29-
rev: 25.1.0
29+
rev: 25.9.0
3030
hooks:
3131
- id: black
3232
args: [--skip-string-normalization]
@@ -36,10 +36,11 @@ repos:
3636
- id: codespell
3737
# See args in setup.cfg
3838
- repo: https://github.com/PyCQA/flake8
39-
rev: 7.2.0
39+
rev: 7.3.0
4040
hooks:
4141
- id: flake8
42-
additional_dependencies: [flake8-2020, flake8-bugbear, flake8-comprehensions, flake8-return]
42+
# Skipped plugins which are currently not used by "--select": flake8-return, which does not support Python 3.14 yet: https://github.com/afonasev/flake8-return/pull/139
43+
additional_dependencies: [flake8-2020, flake8-bugbear, flake8-comprehensions]
4344
args:
4445
- --builtins=_
4546
- --count
@@ -49,12 +50,12 @@ repos:
4950
- --show-source
5051
- --statistics
5152
- repo: https://github.com/timothycrosley/isort
52-
rev: 6.0.1
53+
rev: 7.0.0
5354
hooks:
5455
- id: isort
5556
args: ["--profile", "black", "--filter-files"]
5657
- repo: https://github.com/asottile/pyupgrade
57-
rev: v3.19.1
58+
rev: v3.21.0
5859
hooks:
5960
- id: pyupgrade
6061
args: [--py37-plus]

0 commit comments

Comments
 (0)