From 14a901f3be798993ab17c9661ed9763128464d58 Mon Sep 17 00:00:00 2001 From: Emmanuel Blot Date: Wed, 29 Nov 2023 14:49:05 +0100 Subject: [PATCH] .github: run all CI sessions on PR --- .github/workflows/pythonchecksyntax.yml | 7 +++++-- .github/workflows/pythonmocktests.yml | 2 +- .github/workflows/pythonpackage.yml | 7 +++++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pythonchecksyntax.yml b/.github/workflows/pythonchecksyntax.yml index 4be50301..5cc96f43 100644 --- a/.github/workflows/pythonchecksyntax.yml +++ b/.github/workflows/pythonchecksyntax.yml @@ -1,7 +1,10 @@ name: Python syntax tests # check that there is no import issues with tool suite -on: [push] +on: + push: + pull_request: + types: [assigned, opened, synchronize, reopened] jobs: build: @@ -14,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/pythonmocktests.yml b/.github/workflows/pythonmocktests.yml index 7353ceef..216c14d9 100644 --- a/.github/workflows/pythonmocktests.yml +++ b/.github/workflows/pythonmocktests.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 5db2f442..a9dad9b5 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -1,6 +1,9 @@ name: Python package -on: [push] +on: + push: + pull_request: + types: [assigned, opened, synchronize, reopened] jobs: build: @@ -13,7 +16,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies