16 Commits

Author SHA1 Message Date
mxmehl 0b28839035 add version command
Test suites / test-build-install (pull_request) Successful in 27s
Test suites / selftest (pull_request) Successful in 55s
Test suites / pylint (pull_request) Successful in 32s
Test suites / formatting (pull_request) Successful in 27s
Test suites / mypy (pull_request) Successful in 29s
Test suites / reuse (pull_request) Successful in 6s
2024-01-16 16:04:18 +01:00
mxmehl 40739fcc08 fix pylint by igoring some errors 2024-01-16 15:47:32 +01:00
mxmehl 98dc4a4360 clean up test workflow 2024-01-16 15:45:06 +01:00
mxmehl 9443255911 test whether string test can fail
Test suites / test-build-install (pull_request) Successful in 28s
Test suites / selftest (pull_request) Failing after 53s
Test suites / pylint (pull_request) Failing after 29s
Test suites / formatting (pull_request) Successful in 27s
Test suites / mypy (pull_request) Successful in 28s
Test suites / reuse (pull_request) Successful in 6s
2024-01-16 15:42:53 +01:00
mxmehl 1abf7ddd08 start seaf-cli daemon
Test suites / test-build-install (pull_request) Successful in 27s
Test suites / selftest (pull_request) Successful in 54s
Test suites / pylint (pull_request) Failing after 31s
Test suites / formatting (pull_request) Successful in 27s
Test suites / mypy (pull_request) Successful in 27s
Test suites / reuse (pull_request) Successful in 6s
2024-01-16 15:39:40 +01:00
mxmehl 64af877b51 configure seaf-cli
Test suites / test-build-install (pull_request) Successful in 26s
Test suites / pylint (pull_request) Has been cancelled
Test suites / formatting (pull_request) Has been cancelled
Test suites / mypy (pull_request) Has been cancelled
Test suites / reuse (pull_request) Has been cancelled
Test suites / selftest (pull_request) Has been cancelled
2024-01-16 15:36:30 +01:00
mxmehl 870fe312d7 install seaf-cli
Test suites / test-build-install (pull_request) Successful in 26s
Test suites / selftest (pull_request) Failing after 37s
Test suites / pylint (pull_request) Failing after 28s
Test suites / formatting (pull_request) Successful in 25s
Test suites / mypy (pull_request) Successful in 27s
Test suites / reuse (pull_request) Successful in 6s
2024-01-16 15:20:31 +01:00
mxmehl 91e4a622ad setup sync of test library
Test suites / test-build-install (pull_request) Successful in 26s
Test suites / selftest (pull_request) Failing after 24s
Test suites / pylint (pull_request) Failing after 29s
Test suites / formatting (pull_request) Successful in 26s
Test suites / mypy (pull_request) Successful in 27s
Test suites / reuse (pull_request) Successful in 6s
2024-01-16 15:17:53 +01:00
mxmehl 50f6064fa8 add step for test build and install
Test suites / test-build-install (pull_request) Successful in 29s
Test suites / selftest (pull_request) Successful in 25s
Test suites / pylint (pull_request) Failing after 29s
Test suites / formatting (pull_request) Successful in 26s
Test suites / mypy (pull_request) Successful in 25s
Test suites / reuse (pull_request) Successful in 5s
2024-01-16 14:54:40 +01:00
mxmehl 83567afa2a fix runner
Test suites / selftest (pull_request) Successful in 26s
Test suites / pylint (pull_request) Failing after 35s
Test suites / formatting (pull_request) Successful in 26s
Test suites / mypy (pull_request) Successful in 27s
Test suites / reuse (pull_request) Successful in 6s
2024-01-16 14:52:00 +01:00
mxmehl fb26f5b723 extend tests
Test suites / selftest (pull_request) Successful in 24s
Test suites / reuse (pull_request) Successful in 6s
Test suites / pylint (pull_request) Has been cancelled
Test suites / formatting (pull_request) Has been cancelled
Test suites / mypy (pull_request) Has been cancelled
2024-01-16 14:49:25 +01:00
mxmehl c53532efc7 using extra action again
Test suites / selftest (pull_request) Successful in 24s
Test suites / reuse (pull_request) Successful in 5s
2024-01-16 14:42:58 +01:00
mxmehl 5b0ff38265 install package inside step
Test suites / selftest (pull_request) Successful in 23s
Test suites / reuse (pull_request) Successful in 6s
2024-01-16 14:40:59 +01:00
mxmehl 4a612f81ad fix action path
Test suites / selftest (pull_request) Failing after 24s
Test suites / reuse (pull_request) Successful in 6s
2024-01-16 14:35:35 +01:00
mxmehl 781575468b fix REUSE and action path
Test suites / selftest (pull_request) Failing after 5s
Test suites / reuse (pull_request) Successful in 6s
2024-01-16 14:30:41 +01:00
mxmehl 9bbd95396c add some first CI tests and pilots
Test suites / selftest (pull_request) Failing after 5s
Test suites / reuse (pull_request) Failing after 17s
2024-01-16 14:28:45 +01:00
8 changed files with 47 additions and 80 deletions
+4 -10
View File
@@ -3,17 +3,11 @@
# SPDX-License-Identifier: Apache-2.0
name: "Reusable Poetry build workflow"
inputs:
poetry_install_args:
default: ""
description: "Value for additional poetry install arguments"
required: false
runs:
using: "composite"
steps:
- name: Install poetry
run: pip install poetry
- name: Install poetry package
run: poetry install --no-interaction ${{ inputs.poetry_install_args }}
- name: Install dependencies
run: |
pip install poetry
poetry install --no-interaction
shell: bash
-41
View File
@@ -1,41 +0,0 @@
# SPDX-FileCopyrightText: 2023 Max Mehl <https://mehl.mx>
#
# SPDX-License-Identifier: Apache-2.0
name: Python Linters
on:
push:
branches:
- main
pull_request:
jobs:
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: ./.gitea/actions/poetrybuild
- name: Lint with pylint
run: poetry run pylint seafile_mirror
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: ./.gitea/actions/poetrybuild
- name: Test formatting with isort and black
run: |
poetry run isort --check seafile_mirror/
poetry run black .
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: ./.gitea/actions/poetrybuild
- name: Test typing with mypy
run: poetry run mypy
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and publish to PyPI
- name: Build and publish to pypi
uses: https://github.com/JRubics/poetry-publish@v1.17
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
-19
View File
@@ -1,19 +0,0 @@
# SPDX-FileCopyrightText: 2023 Max Mehl <https://mehl.mx>
#
# SPDX-License-Identifier: Apache-2.0
name: REUSE Compliance
on:
push:
branches:
- main
pull_request:
jobs:
reuse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check REUSE Compliance
uses: https://github.com/fsfe/reuse-action@v2
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
name: Selftests
name: Test suites
on:
push:
@@ -29,15 +29,12 @@ jobs:
seafile-mirror --help
# Run tool and sync a test library
test-sync:
selftest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
uses: ./.gitea/actions/poetrybuild
# using minimal set of dependencies
with:
poetry_install_args: "--without dev"
- name: Install seaf-cli
run: |
apt-get update
@@ -55,3 +52,41 @@ jobs:
run: poetry run seafile-mirror -c tests -v
- name: Attempt to find expected string in library
run: grep "__ci_test_expect__" tests/ci-test/testfile.txt
# PYLINT / BLACK / ISORT / MYPY
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: ./.gitea/actions/poetrybuild
- name: Lint with pylint
run: poetry run pylint seafile_mirror
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: ./.gitea/actions/poetrybuild
- name: Test formatting with isort and black
run: |
poetry run isort --check seafile_mirror/
poetry run black .
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: ./.gitea/actions/poetrybuild
- name: Test typing with mypy
run: poetry run mypy
# REUSE COMPLIANCE
reuse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check REUSE Compliance
uses: https://github.com/fsfe/reuse-action@v2
-1
View File
@@ -8,4 +8,3 @@ venv/
/seafile_mirror.conf.yaml
__pycache__/
*.log
tests/ci-test/
+1 -1
View File
@@ -4,7 +4,7 @@
[tool.poetry]
name = "seafile-mirror"
version = "0.2.0"
version = "0.1.0"
description = "Handle clean read-only (re-)syncs of Seafile libraries to mirror them"
authors = ["Max Mehl <mail@mehl.mx>"]
license = "Apache-2.0"
+1 -2
View File
@@ -2,8 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0
# Configuration file for seafile-mirror which will be filled in and applied in
# the CI test
# Example configuration file for seafile-mirror
- server: __seafile_server__
user: __seafile_user__
password: __seafile_pass__