diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 6d642d6..4d364dc 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -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: