setup sync of test library
Some checks failed
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
Some checks failed
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
This commit is contained in:
@@ -47,15 +47,22 @@ jobs:
|
||||
- name: Run package
|
||||
run: seafile-mirror --help
|
||||
|
||||
# Run tool against own repository
|
||||
# Run tool and sync a test library
|
||||
selftest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
uses: ./.gitea/actions/poetrybuild
|
||||
- name: Try to run app
|
||||
run: poetry run seafile-mirror --help
|
||||
- name: Fill configuration for test library
|
||||
run: |
|
||||
sed -i "s|__seafile_server__|${{ secrets.SEAFILE_SERVER }}|" tests/seafile_mirror.conf.yaml
|
||||
sed -i "s|__seafile_user__|${{ secrets.SEAFILE_USER }}|" tests/seafile_mirror.conf.yaml
|
||||
sed -i "s|__seafile_pass__|${{ secrets.SEAFILE_PASS }}|" tests/seafile_mirror.conf.yaml
|
||||
- name: Sync the library
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user