split workflows
All checks were successful
Python Linters / pylint (pull_request) Successful in 32s
Python Linters / formatting (pull_request) Successful in 27s
Python Linters / mypy (pull_request) Successful in 26s
REUSE Compliance / reuse (pull_request) Successful in 6s
Selftests / test-build-install (pull_request) Successful in 29s
Selftests / selftest (pull_request) Successful in 52s
All checks were successful
Python Linters / pylint (pull_request) Successful in 32s
Python Linters / formatting (pull_request) Successful in 27s
Python Linters / mypy (pull_request) Successful in 26s
REUSE Compliance / reuse (pull_request) Successful in 6s
Selftests / test-build-install (pull_request) Successful in 29s
Selftests / selftest (pull_request) Successful in 52s
This commit is contained in:
41
.gitea/workflows/linting.yaml
Normal file
41
.gitea/workflows/linting.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
# 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
|
||||
19
.gitea/workflows/reuse.yaml
Normal file
19
.gitea/workflows/reuse.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
# 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: Test suites
|
||||
name: Selftests
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -55,41 +55,3 @@ 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
|
||||
Reference in New Issue
Block a user