Re-comment lint
This commit is contained in:
124
.github/workflows/tests.yml
vendored
124
.github/workflows/tests.yml
vendored
@@ -10,68 +10,68 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
check-sampleconfig:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- run: pip install .
|
||||
- run: scripts-dev/generate_sample_config.sh --check
|
||||
- run: scripts-dev/config-lint.sh
|
||||
|
||||
check-schema-delta:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- run: "pip install 'click==8.1.1' 'GitPython>=3.1.20'"
|
||||
- run: scripts-dev/check_schema_delta.py --force-colors
|
||||
|
||||
lint:
|
||||
uses: "matrix-org/backend-meta/.github/workflows/python-poetry-ci.yml@v1"
|
||||
with:
|
||||
typechecking-extras: "all"
|
||||
|
||||
lint-crlf:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Check line endings
|
||||
run: scripts-dev/check_line_terminators.sh
|
||||
|
||||
lint-newsfile:
|
||||
if: ${{ github.base_ref == 'develop' || contains(github.base_ref, 'release-') }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v2
|
||||
- run: "pip install 'towncrier>=18.6.0rc1'"
|
||||
- run: scripts-dev/check-newsfragment.sh
|
||||
env:
|
||||
PULL_REQUEST_NUMBER: ${{ github.event.number }}
|
||||
|
||||
lint-pydantic:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
fetch-depth: 0
|
||||
- uses: matrix-org/setup-python-poetry@v1
|
||||
with:
|
||||
extras: "all"
|
||||
- run: poetry run scripts-dev/check_pydantic_models.py
|
||||
|
||||
# Dummy step to gate other tests on without repeating the whole list
|
||||
linting-done:
|
||||
if: ${{ !cancelled() }} # Run this even if prior jobs were skipped
|
||||
needs: [lint, lint-crlf, lint-newsfile, lint-pydantic, check-sampleconfig, check-schema-delta]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: "true"
|
||||
# check-sampleconfig:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - uses: actions/setup-python@v2
|
||||
# - run: pip install .
|
||||
# - run: scripts-dev/generate_sample_config.sh --check
|
||||
# - run: scripts-dev/config-lint.sh
|
||||
#
|
||||
# check-schema-delta:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - uses: actions/setup-python@v2
|
||||
# - run: "pip install 'click==8.1.1' 'GitPython>=3.1.20'"
|
||||
# - run: scripts-dev/check_schema_delta.py --force-colors
|
||||
#
|
||||
# lint:
|
||||
# uses: "matrix-org/backend-meta/.github/workflows/python-poetry-ci.yml@v1"
|
||||
# with:
|
||||
# typechecking-extras: "all"
|
||||
#
|
||||
# lint-crlf:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - name: Check line endings
|
||||
# run: scripts-dev/check_line_terminators.sh
|
||||
#
|
||||
# lint-newsfile:
|
||||
# if: ${{ github.base_ref == 'develop' || contains(github.base_ref, 'release-') }}
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# with:
|
||||
# ref: ${{ github.event.pull_request.head.sha }}
|
||||
# fetch-depth: 0
|
||||
# - uses: actions/setup-python@v2
|
||||
# - run: "pip install 'towncrier>=18.6.0rc1'"
|
||||
# - run: scripts-dev/check-newsfragment.sh
|
||||
# env:
|
||||
# PULL_REQUEST_NUMBER: ${{ github.event.number }}
|
||||
#
|
||||
# lint-pydantic:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# with:
|
||||
# ref: ${{ github.event.pull_request.head.sha }}
|
||||
# fetch-depth: 0
|
||||
# - uses: matrix-org/setup-python-poetry@v1
|
||||
# with:
|
||||
# extras: "all"
|
||||
# - run: poetry run scripts-dev/check_pydantic_models.py
|
||||
#
|
||||
# # Dummy step to gate other tests on without repeating the whole list
|
||||
# linting-done:
|
||||
# if: ${{ !cancelled() }} # Run this even if prior jobs were skipped
|
||||
# needs: [lint, lint-crlf, lint-newsfile, lint-pydantic, check-sampleconfig, check-schema-delta]
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - run: "true"
|
||||
|
||||
trial:
|
||||
if: ${{ !cancelled() && !failure() }} # Allow previous steps to be skipped, but not fail
|
||||
|
||||
Reference in New Issue
Block a user