Skip to content

kiss: Add future argument to send() #53

kiss: Add future argument to send()

kiss: Add future argument to send() #53

Workflow file for this run

name: Pre-merge and post-merge tests
on:
push:
pull_request:
workflow_dispatch:
inputs:
skip-coverage:
# lcov won't work in Python 3.5.
description: "Whether to skip coverage checks?"
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.5"
- "3.11"
- "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
exclude:
# Python 3.5 does not run on ubuntu-latest
- python: "3.5"
platform: ubuntu-latest
include:
- python: "3.5"
platform: ubuntu-20.04
skip-coverage: true
with:
python-version: ${{ matrix.python }}
platform: ${{ matrix.platform }}
skip-coverage: ${{ matrix.skip-coverage || false }}
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
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) }}