Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't run tests on draft PRs #91

Merged
merged 1 commit into from
Jun 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@ on:
- main
- development

# When a push occurs on a PR that targets these branches
# Trigger on open/push to a PR targeting one of these branches
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
- development

jobs:
dist:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest

steps:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/precommit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ on:

# When a push occurs on a PR that targets these branches
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
- development

jobs:
run-all-files:
if : ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:

# When a push occurs on a PR that targets these branches
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
- development
Expand All @@ -36,6 +41,7 @@ jobs:
ubuntu:

name: ${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.kind }}
if: ${{ !github.event.pull_request.draft }}
runs-on: ${{ matrix.os }}

strategy:
Expand Down Expand Up @@ -104,6 +110,7 @@ jobs:
- name: Tests
timeout-minutes: 60
run: |
echo "Running all tests..."
if [[ ${{ matrix.kind }} == 'conda' ]]; then
PYTHON=$CONDA/envs/testenv/bin/python3
export PATH="$CONDA/envs/testenv/bin:$PATH"
Expand Down