|
| 1 | +name: Quality control checks |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ main ] |
| 6 | + paths-ignore: |
| 7 | + - '**.md' # Do not need to run CI for markdown changes. |
| 8 | + pull_request: |
| 9 | + branches: [ main ] |
| 10 | + paths-ignore: |
| 11 | + - '**.md' |
| 12 | + |
| 13 | +jobs: |
| 14 | + linux: |
| 15 | + runs-on: ubuntu-latest |
| 16 | + |
| 17 | + strategy: |
| 18 | + matrix: |
| 19 | + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] |
| 20 | + |
| 21 | + steps: |
| 22 | + - uses: actions/checkout@v4 |
| 23 | + - name: Set up Python ${{ matrix.python-version }} |
| 24 | + uses: actions/setup-python@v4 |
| 25 | + with: |
| 26 | + python-version: ${{ matrix.python-version }} |
| 27 | + |
| 28 | + - name: Install poetry |
| 29 | + run: pipx install poetry |
| 30 | + |
| 31 | + - uses: ./.github/actions/build |
| 32 | + - uses: ./.github/actions/build-docs |
| 33 | + |
| 34 | + - name: Run tests |
| 35 | + run: make test |
| 36 | + |
| 37 | + - name: Verify typehints |
| 38 | + run: make lint |
| 39 | + |
| 40 | + - name: install contract test dependencies |
| 41 | + run: make install-contract-tests-deps |
| 42 | + |
| 43 | + - name: start SSE contract test service |
| 44 | + run: make start-contract-test-service-bg |
| 45 | + |
| 46 | + - name: run SSE contract tests |
| 47 | + run: make run-contract-tests |
| 48 | + |
| 49 | + windows: |
| 50 | + runs-on: windows-latest |
| 51 | + |
| 52 | + defaults: |
| 53 | + run: |
| 54 | + shell: powershell |
| 55 | + |
| 56 | + strategy: |
| 57 | + matrix: |
| 58 | + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] |
| 59 | + |
| 60 | + steps: |
| 61 | + - uses: actions/checkout@v4 |
| 62 | + - name: Set up Python ${{ matrix.python-version }} |
| 63 | + uses: actions/setup-python@v4 |
| 64 | + with: |
| 65 | + python-version: ${{ matrix.python-version }} |
| 66 | + |
| 67 | + - name: Install requirements |
| 68 | + run: | |
| 69 | + pipx install poetry |
| 70 | + poetry install |
| 71 | +
|
| 72 | + - uses: ./.github/actions/build |
| 73 | + - uses: ./.github/actions/build-docs |
| 74 | + |
| 75 | + - name: Run tests |
| 76 | + run: make test |
0 commit comments