Compare commits

..

2 Commits

Author SHA1 Message Date
6eaf0a795d fix poetry install in ubuntu 24.04
Some checks failed
Python Linters / pylint (push) Failing after 48s
Python Linters / formatting (push) Failing after 50s
REUSE Compliance / reuse (push) Successful in 13s
Selftests / test-build-install (push) Failing after 11s
Python Linters / mypy (push) Failing after 48s
Selftests / test-sync (push) Failing after 35s
2025-01-12 12:25:44 +01:00
576ef895e0 make log file destination configurable
Some checks failed
Python Linters / pylint (push) Failing after 57s
Python Linters / formatting (push) Failing after 55s
REUSE Compliance / reuse (push) Successful in 18s
Python Linters / mypy (push) Failing after 11s
Selftests / test-build-install (push) Failing after 9s
Selftests / test-sync (push) Failing after 10s
2025-01-12 12:11:58 +01:00
3 changed files with 6 additions and 7 deletions

View File

@@ -12,8 +12,8 @@ inputs:
runs: runs:
using: "composite" using: "composite"
steps: steps:
- name: Add pipx to PATH - name: Set PATH
run: echo "/root/.local/bin" >> ${GITHUB_PATH} run: export PATH=$PATH:~/.local/bin
- name: Install poetry - name: Install poetry
run: pipx install poetry run: pipx install poetry
- name: Install poetry package - name: Install poetry package

View File

@@ -14,13 +14,11 @@ on:
jobs: jobs:
# Test building the package and installing it via pip3 # Test building the package and installing it via pip3
test-build-install: test-build-install:
runs-on: ubuntu-22.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Add pipx to PATH
run: echo "/root/.local/bin" >> ${GITHUB_PATH}
- name: Install poetry - name: Install poetry
run: pipx install poetry run: pip install poetry
- name: Build package - name: Build package
run: poetry build run: poetry build
- name: Install package - name: Install package

View File

@@ -30,6 +30,7 @@ parser.add_argument("-c", "--configdir", required=True, help="The config directo
parser.add_argument( parser.add_argument(
"-l", "-l",
"--logfile", "--logfile",
required=True,
help="The path to the logfile. Default: <configdir>/seafile_mirror.log", help="The path to the logfile. Default: <configdir>/seafile_mirror.log",
) )
parser.add_argument( parser.add_argument(
@@ -57,7 +58,7 @@ parser.add_argument(
parser.add_argument("--version", action="version", version="%(prog)s " + __version__) parser.add_argument("--version", action="version", version="%(prog)s " + __version__)
def main(): # pylint: disable=too-many-locals, too-many-statements, too-many-branches def main(): # pylint: disable=too-many-locals, too-many-statements
"""Main function""" """Main function"""
args = parser.parse_args() args = parser.parse_args()
# Set files depending on configdir # Set files depending on configdir