Skip to content

Commit

Permalink
🚩 Skip Ubuntu Python 3.9 CI tests for draft PRs
Browse files Browse the repository at this point in the history
Conserve GitHub Actions Continuous Integration resources when a Pull Request is in draft mode.
  • Loading branch information
weiji14 committed Jun 9, 2022
1 parent af7768f commit f65b70f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,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 Ubuntu-22.04/Python 3.9
include:
- os: 'ubuntu-22.04'
Expand Down

0 comments on commit f65b70f

Please sign in to comment.