Skip to content

Commit

Permalink
Update test workflow to act on PRs not pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjholland committed May 21, 2024
1 parent d859efe commit 80aa1ec
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
name: "Build and test"
on:
- push
pull_request:
types:
- ready_for_review
branches:
- develop
workflow_dispatch:
jobs:
qa:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"
- uses: pre-commit/[email protected]
test:
needs: qa
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"
- run: pip install -r requirements-dev.txt
- run: pytest tests

0 comments on commit 80aa1ec

Please sign in to comment.