-
Notifications
You must be signed in to change notification settings - Fork 85
45 lines (40 loc) · 1.23 KB
/
pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI
on:
pull_request:
push:
branches: ["main"]
workflow_dispatch:
jobs:
check-newsfile:
name: Check PR has a changelog
if: ${{ github.base_ref == 'main' || contains(github.base_ref, 'release-') }}
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 }}"
common-python-ci:
name: Lint
uses: "matrix-org/backend-meta/.github/workflows/python-ci.yml@dmr/poetry-ci"
packaging:
name: Packaging
uses: "matrix-org/backend-meta/.github/workflows/packaging.yml@dmr/poetry-ci"
run-tests:
needs: [check-newsfile, common-python-ci, 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@dmr/wip
with:
python-version: ${{ matrix.python-version }}
- run: poetry run trial ${{ matrix.test-dir }}