From fb26f5b7230cd3cbc660311ba26baf1cdbdcb9e5 Mon Sep 17 00:00:00 2001 From: Max Mehl Date: Tue, 16 Jan 2024 14:49:25 +0100 Subject: [PATCH] extend tests --- .gitea/workflows/test.yaml | 65 +++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 36 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 04fd247..c1222f1 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -60,50 +60,43 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies uses: ./.gitea/actions/poetrybuild - # - name: Install dependencies - # run: | - # pip install poetry - # poetry install --no-interaction - name: Try to run app run: poetry run seafile-mirror --help - # pytest: - # runs-on: ubuntu-20.04 - # steps: - # - uses: actions/checkout@v2 - # - uses: ./.github/actions/poetrybuild - # - name: Test with pytest - # run: poetry run pytest + # PYLINT / BLACK / ISORT / MYPY + pylint: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + uses: ./.gitea/actions/poetrybuild + - name: Lint with pylint + run: poetry run pylint seafile_mirror - # pylint: - # runs-on: ubuntu-20.04 - # steps: - # - uses: actions/checkout@v2 - # - uses: ./.github/actions/poetrybuild - # - name: Lint with pylint - # run: poetry run pylint ossrfc/ tests/ + formatting: + runs-on: ubuntu-20.04 + 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 . - # formatting: - # runs-on: ubuntu-20.04 - # steps: - # - uses: actions/checkout@v2 - # - uses: ./.github/actions/poetrybuild - # - name: Test formatting with isort and black - # run: | - # poetry run isort --check ossrfc/ - # poetry run black . - - # mypy: - # runs-on: ubuntu-20.04 - # steps: - # - uses: actions/checkout@v2 - # - uses: ./.github/actions/poetrybuild - # - name: Test typing with mypy - # run: poetry run mypy + mypy: + runs-on: ubuntu-20.04 + 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@v3 + - uses: actions/checkout@v4 - name: Check REUSE Compliance uses: https://github.com/fsfe/reuse-action@v2