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

This commit is contained in:
2024-01-16 15:17:53 +01:00
parent 50f6064fa8
commit 91e4a622ad

View File

@@ -47,15 +47,22 @@ jobs:
- name: Run package - name: Run package
run: seafile-mirror --help run: seafile-mirror --help
# Run tool against own repository # Run tool and sync a test library
selftest: selftest:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
uses: ./.gitea/actions/poetrybuild uses: ./.gitea/actions/poetrybuild
- name: Try to run app - name: Fill configuration for test library
run: poetry run seafile-mirror --help 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 / BLACK / ISORT / MYPY
pylint: pylint: