github actions: Remove exclude
section
#743
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pre-merge and post-merge tests | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
run-slow: | |
description: "Whether to run slow tests (normally they are skipped)" | |
type: boolean | |
required: false | |
default: false | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Run tests | |
uses: ./.github/workflows/test.yml | |
# https://wildwolf.name/github-actions-how-to-avoid-running-the-same-workflow-multiple-times/ | |
if: > | |
github.event_name != 'pull_request' | |
|| github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
strategy: | |
matrix: | |
python: | |
- "3.7" | |
- "3.8" | |
- "3.12" | |
platform: | |
# This package is supposed to be OS-independent and is unlikely to have | |
# OS-specific bugs, so we conserve runner usage by only testing on Linux | |
# during pre-merge and post-merge testing. If it works on Linux, it'll | |
# probably work on Mac and Windows too. But if an OS-specific bug does | |
# slip through, we should catch it in pre-release testing. | |
- ubuntu-latest | |
force-minimum-dependencies: | |
- false | |
include: | |
- python: "3.13" | |
platform: ubuntu-latest | |
force-minimum-dependencies: false | |
# For testing forced minimum deps, use the newest and oldest stable | |
# versions of Python on which those dependencies can be installed. | |
- python: "3.8" | |
platform: ubuntu-latest | |
force-minimum-dependencies: true | |
- python: "3.12" | |
platform: ubuntu-latest | |
force-minimum-dependencies: true | |
with: | |
python-version: ${{ matrix.python }} | |
platform: ${{ matrix.platform }} | |
force-minimum-dependencies: ${{ matrix.force-minimum-dependencies }} | |
run-slow: ${{ inputs.run-slow || true }} | |
docs: | |
name: Build documentation | |
uses: ./.github/workflows/docs.yml | |
# https://wildwolf.name/github-actions-how-to-avoid-running-the-same-workflow-multiple-times/ | |
if: > | |
github.event_name != 'pull_request' | |
|| github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
check: # This job does nothing and is only used for the branch protection | |
# https://wildwolf.name/github-actions-how-to-avoid-running-the-same-workflow-multiple-times/ | |
if: > | |
github.event_name != 'pull_request' | |
|| github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
needs: | |
- test | |
- docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} |