Skip to content

pin CI to python 3.11 #923

pin CI to python 3.11

pin CI to python 3.11 #923

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"
with:
python-version: 3.11

Check failure on line 31 in .github/workflows/pipeline.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/pipeline.yml (Line: 31, Col: 23): Invalid input, python-version is not defined in the referenced workflow.
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