-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from sashacmc/structure-upgrade
Structure upgrade and refactoring
- Loading branch information
Showing
16 changed files
with
241 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Build Debian Package | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Build Debian package | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y devscripts debhelper curl | ||
# Ensure you have the necessary build dependencies | ||
sudo apt-get build-dep . | ||
# Build the Debian package | ||
debuild -us -uc -b | ||
- name: Create artifact directory | ||
run: mkdir -p artifacts | ||
|
||
- name: Move Debian package to artifact directory | ||
run: mv ../*.deb artifacts/ | ||
|
||
- name: Test Debian package installation | ||
run: | | ||
sudo apt install -y pip python3-exif python3-progressbar exiftran python3-psutil | ||
sudo pip install PyExifTool | ||
sudo dpkg -i artifacts/*.deb | ||
sudo systemctl enable photo-importer.service | ||
sudo systemctl restart photo-importer.service | ||
sudo systemctl status photo-importer.service | ||
photo-importer -h | ||
- name: Upload Debian package as artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: debian-package | ||
path: artifacts/*.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Pylint | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint | ||
pip install . | ||
- name: Analysing the code with pylint | ||
run: | | ||
pylint $(git ls-files '*.py') --disable missing-function-docstring,missing-module-docstring,missing-class-docstring,broad-exception-caught |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
photo-importer (1.2.5) stable; urgency=medium | ||
|
||
* Package refactoring | ||
* Code cleanup | ||
|
||
-- Alexander Bushnev <[email protected]> Tue, 09 Jul 2024 00:24:52 +0200 | ||
|
||
photo-importer (1.2.4) stable; urgency=medium | ||
|
||
* Add time_shift options | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
9 | ||
10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.