diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 31f456f..a88ea24 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, ready_for_review, reopened, synchronize] 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 }} + # Exclude Ubuntu + Python 3.8 job for draft PRs + exclude: + - python-version: '3.8' + isDraft: true # Only install optional packages on Ubuntu-22.04/Python 3.9 include: - os: 'ubuntu-22.04'