Skip to content

Add MSC4040 matrix-fed service lookups #911

Add MSC4040 matrix-fed service lookups

Add MSC4040 matrix-fed service lookups #911

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: ["main"]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-newsfile:
name: Check PR has a changelog
if: ${{ (github.base_ref == 'main' || contains(github.base_ref, 'release-')) && github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{github.event.pull_request.head.sha}}
- uses: actions/setup-python@v2
with:
python-version: "3.7"
- run: python -m pip install towncrier
- run: "scripts-dev/check_newsfragment.sh ${{ github.event.number }}"
checks:
uses: "matrix-org/backend-meta/.github/workflows/python-poetry-ci.yml@v2"
packaging:
uses: "matrix-org/backend-meta/.github/workflows/packaging.yml@v1"
run-tests:
name: Tests
if: ${{ !cancelled() && !failure() }} # Allow previous steps to be skipped, but not fail
needs: [check-newsfile, checks, packaging]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.x']
test-dir: ['tests', 'matrix_is_tester']
steps:
- uses: actions/checkout@v2
- uses: matrix-org/setup-python-poetry@v1
with:
python-version: ${{ matrix.python-version }}
- run: poetry run trial ${{ matrix.test-dir }}
# a job which runs once all the other jobs are complete, thus allowing PRs to
# be merged.
tests-done:
if: ${{ always() }}
needs:
- check-newsfile
- checks
- packaging
- run-tests
runs-on: ubuntu-latest
steps:
- uses: matrix-org/done-action@v2
with:
needs: ${{ toJSON(needs) }}
# The newsfile lint may be skipped on non PR builds or on dependabot builds
skippable:
check-newsfile