diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index b94d5e0..fe800bf 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -7,6 +7,7 @@ on: push: branches: [ "main" ] pull_request: + types: [opened, reopened, synchronize, ready_for_review] branches: [ "main" ] permissions: @@ -21,6 +22,13 @@ jobs: matrix: python-version: ["3.8", "3.9"] os: [ubuntu-22.04] + # Is it a draft Pull Request (true or false)? + isDraft: + - ${{ github.event.pull_request.draft }} + # Only run one job (Ubuntu + Python 3.8) for draft PRs + exclude: + - python-version: '3.9' + isDraft: true # Only install optional packages on Python 3.9 include: - python-version: '3.8'