sanic/.github/workflows/pr-python-pypy.yml

42 lines
1.2 KiB
YAML
Raw Normal View History

GIT-2023: Enable GitHub Actions support (#2050) * GIT-2023: Enable GitHub Actions support * GIT-2023: fix tox runtime trigger * GIT-2023: add top level action name * GIT-2023: rename tox step name * GIT-2023: rename build task names * GIT-2023: remove macos and windows + nightly versions * GIT-2023: add macos and windows back to os matrix * GIT-2023: expermiental flag to conditionally skip failure * GIT-2023: enable using custom actions * GIT-2023: fix matrix config rendering type * GIT-2023: fix naming issue with os label * GIT-2023: enable type-checking env for tox * GIT-2023: enable pypy3.7 support * GIT-2023: enable pypy experimental flag * GIT-2023: add pypy tox env config * add max timeout of 5 min for pypy tests * GIT-2023: add timeout for each actions * GIT-2023: fix codeQL workflow actions * GIT-2023: limit test matrix to ubuntu and support on demand * GIT-2023: enable docker image publish on release * GIT-2023: fix on-demand pypy action * GIT-2023: enable pypi publish workflow * GIT-2023: enable verbose logs for py3.9 * GIT-2023: reduce py3.9 verbosity * GIT-2023: enable docs linter * GIT-2023: extend test matrix to include macos + windows * GIT-2023: move windows based workflow to standalone task * GIT-2023: fix windows test matrix * GIT-2023: mark py39-no-ext as flaky test * GIT-2023: mark flaky test * GIT-2023: make timeout internal to steps for ease of management * GIT-2023: rename image publish step name * GIT-2023: mark keep alive client timeout for linux only * GIT-2023: enable retries on test failure Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
2021-04-06 21:32:01 +01:00
name: Python PyPy Tests
on:
workflow_dispatch:
inputs:
tox-env:
description: "Tox Env to run on the PyPy Infra"
GIT-2023: Enable GitHub Actions support (#2050) * GIT-2023: Enable GitHub Actions support * GIT-2023: fix tox runtime trigger * GIT-2023: add top level action name * GIT-2023: rename tox step name * GIT-2023: rename build task names * GIT-2023: remove macos and windows + nightly versions * GIT-2023: add macos and windows back to os matrix * GIT-2023: expermiental flag to conditionally skip failure * GIT-2023: enable using custom actions * GIT-2023: fix matrix config rendering type * GIT-2023: fix naming issue with os label * GIT-2023: enable type-checking env for tox * GIT-2023: enable pypy3.7 support * GIT-2023: enable pypy experimental flag * GIT-2023: add pypy tox env config * add max timeout of 5 min for pypy tests * GIT-2023: add timeout for each actions * GIT-2023: fix codeQL workflow actions * GIT-2023: limit test matrix to ubuntu and support on demand * GIT-2023: enable docker image publish on release * GIT-2023: fix on-demand pypy action * GIT-2023: enable pypi publish workflow * GIT-2023: enable verbose logs for py3.9 * GIT-2023: reduce py3.9 verbosity * GIT-2023: enable docs linter * GIT-2023: extend test matrix to include macos + windows * GIT-2023: move windows based workflow to standalone task * GIT-2023: fix windows test matrix * GIT-2023: mark py39-no-ext as flaky test * GIT-2023: mark flaky test * GIT-2023: make timeout internal to steps for ease of management * GIT-2023: rename image publish step name * GIT-2023: mark keep alive client timeout for linux only * GIT-2023: enable retries on test failure Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
2021-04-06 21:32:01 +01:00
required: false
2023-07-09 20:00:14 +01:00
default: "pypy310"
GIT-2023: Enable GitHub Actions support (#2050) * GIT-2023: Enable GitHub Actions support * GIT-2023: fix tox runtime trigger * GIT-2023: add top level action name * GIT-2023: rename tox step name * GIT-2023: rename build task names * GIT-2023: remove macos and windows + nightly versions * GIT-2023: add macos and windows back to os matrix * GIT-2023: expermiental flag to conditionally skip failure * GIT-2023: enable using custom actions * GIT-2023: fix matrix config rendering type * GIT-2023: fix naming issue with os label * GIT-2023: enable type-checking env for tox * GIT-2023: enable pypy3.7 support * GIT-2023: enable pypy experimental flag * GIT-2023: add pypy tox env config * add max timeout of 5 min for pypy tests * GIT-2023: add timeout for each actions * GIT-2023: fix codeQL workflow actions * GIT-2023: limit test matrix to ubuntu and support on demand * GIT-2023: enable docker image publish on release * GIT-2023: fix on-demand pypy action * GIT-2023: enable pypi publish workflow * GIT-2023: enable verbose logs for py3.9 * GIT-2023: reduce py3.9 verbosity * GIT-2023: enable docs linter * GIT-2023: extend test matrix to include macos + windows * GIT-2023: move windows based workflow to standalone task * GIT-2023: fix windows test matrix * GIT-2023: mark py39-no-ext as flaky test * GIT-2023: mark flaky test * GIT-2023: make timeout internal to steps for ease of management * GIT-2023: rename image publish step name * GIT-2023: mark keep alive client timeout for linux only * GIT-2023: enable retries on test failure Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
2021-04-06 21:32:01 +01:00
pypy-version:
description: "Version of PyPy to use"
GIT-2023: Enable GitHub Actions support (#2050) * GIT-2023: Enable GitHub Actions support * GIT-2023: fix tox runtime trigger * GIT-2023: add top level action name * GIT-2023: rename tox step name * GIT-2023: rename build task names * GIT-2023: remove macos and windows + nightly versions * GIT-2023: add macos and windows back to os matrix * GIT-2023: expermiental flag to conditionally skip failure * GIT-2023: enable using custom actions * GIT-2023: fix matrix config rendering type * GIT-2023: fix naming issue with os label * GIT-2023: enable type-checking env for tox * GIT-2023: enable pypy3.7 support * GIT-2023: enable pypy experimental flag * GIT-2023: add pypy tox env config * add max timeout of 5 min for pypy tests * GIT-2023: add timeout for each actions * GIT-2023: fix codeQL workflow actions * GIT-2023: limit test matrix to ubuntu and support on demand * GIT-2023: enable docker image publish on release * GIT-2023: fix on-demand pypy action * GIT-2023: enable pypi publish workflow * GIT-2023: enable verbose logs for py3.9 * GIT-2023: reduce py3.9 verbosity * GIT-2023: enable docs linter * GIT-2023: extend test matrix to include macos + windows * GIT-2023: move windows based workflow to standalone task * GIT-2023: fix windows test matrix * GIT-2023: mark py39-no-ext as flaky test * GIT-2023: mark flaky test * GIT-2023: make timeout internal to steps for ease of management * GIT-2023: rename image publish step name * GIT-2023: mark keep alive client timeout for linux only * GIT-2023: enable retries on test failure Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
2021-04-06 21:32:01 +01:00
required: false
2023-07-09 20:00:14 +01:00
default: "pypy-3.10"
GIT-2023: Enable GitHub Actions support (#2050) * GIT-2023: Enable GitHub Actions support * GIT-2023: fix tox runtime trigger * GIT-2023: add top level action name * GIT-2023: rename tox step name * GIT-2023: rename build task names * GIT-2023: remove macos and windows + nightly versions * GIT-2023: add macos and windows back to os matrix * GIT-2023: expermiental flag to conditionally skip failure * GIT-2023: enable using custom actions * GIT-2023: fix matrix config rendering type * GIT-2023: fix naming issue with os label * GIT-2023: enable type-checking env for tox * GIT-2023: enable pypy3.7 support * GIT-2023: enable pypy experimental flag * GIT-2023: add pypy tox env config * add max timeout of 5 min for pypy tests * GIT-2023: add timeout for each actions * GIT-2023: fix codeQL workflow actions * GIT-2023: limit test matrix to ubuntu and support on demand * GIT-2023: enable docker image publish on release * GIT-2023: fix on-demand pypy action * GIT-2023: enable pypi publish workflow * GIT-2023: enable verbose logs for py3.9 * GIT-2023: reduce py3.9 verbosity * GIT-2023: enable docs linter * GIT-2023: extend test matrix to include macos + windows * GIT-2023: move windows based workflow to standalone task * GIT-2023: fix windows test matrix * GIT-2023: mark py39-no-ext as flaky test * GIT-2023: mark flaky test * GIT-2023: make timeout internal to steps for ease of management * GIT-2023: rename image publish step name * GIT-2023: mark keep alive client timeout for linux only * GIT-2023: enable retries on test failure Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
2021-04-06 21:32:01 +01:00
jobs:
testPyPy:
name: ut-${{ matrix.config.tox-env }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
GIT-2023: Enable GitHub Actions support (#2050) * GIT-2023: Enable GitHub Actions support * GIT-2023: fix tox runtime trigger * GIT-2023: add top level action name * GIT-2023: rename tox step name * GIT-2023: rename build task names * GIT-2023: remove macos and windows + nightly versions * GIT-2023: add macos and windows back to os matrix * GIT-2023: expermiental flag to conditionally skip failure * GIT-2023: enable using custom actions * GIT-2023: fix matrix config rendering type * GIT-2023: fix naming issue with os label * GIT-2023: enable type-checking env for tox * GIT-2023: enable pypy3.7 support * GIT-2023: enable pypy experimental flag * GIT-2023: add pypy tox env config * add max timeout of 5 min for pypy tests * GIT-2023: add timeout for each actions * GIT-2023: fix codeQL workflow actions * GIT-2023: limit test matrix to ubuntu and support on demand * GIT-2023: enable docker image publish on release * GIT-2023: fix on-demand pypy action * GIT-2023: enable pypi publish workflow * GIT-2023: enable verbose logs for py3.9 * GIT-2023: reduce py3.9 verbosity * GIT-2023: enable docs linter * GIT-2023: extend test matrix to include macos + windows * GIT-2023: move windows based workflow to standalone task * GIT-2023: fix windows test matrix * GIT-2023: mark py39-no-ext as flaky test * GIT-2023: mark flaky test * GIT-2023: make timeout internal to steps for ease of management * GIT-2023: rename image publish step name * GIT-2023: mark keep alive client timeout for linux only * GIT-2023: enable retries on test failure Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
2021-04-06 21:32:01 +01:00
config:
- {
python-version: "${{ github.event.inputs.pypy-version }}",
tox-env: "${{ github.event.inputs.tox-env }}",
}
GIT-2023: Enable GitHub Actions support (#2050) * GIT-2023: Enable GitHub Actions support * GIT-2023: fix tox runtime trigger * GIT-2023: add top level action name * GIT-2023: rename tox step name * GIT-2023: rename build task names * GIT-2023: remove macos and windows + nightly versions * GIT-2023: add macos and windows back to os matrix * GIT-2023: expermiental flag to conditionally skip failure * GIT-2023: enable using custom actions * GIT-2023: fix matrix config rendering type * GIT-2023: fix naming issue with os label * GIT-2023: enable type-checking env for tox * GIT-2023: enable pypy3.7 support * GIT-2023: enable pypy experimental flag * GIT-2023: add pypy tox env config * add max timeout of 5 min for pypy tests * GIT-2023: add timeout for each actions * GIT-2023: fix codeQL workflow actions * GIT-2023: limit test matrix to ubuntu and support on demand * GIT-2023: enable docker image publish on release * GIT-2023: fix on-demand pypy action * GIT-2023: enable pypi publish workflow * GIT-2023: enable verbose logs for py3.9 * GIT-2023: reduce py3.9 verbosity * GIT-2023: enable docs linter * GIT-2023: extend test matrix to include macos + windows * GIT-2023: move windows based workflow to standalone task * GIT-2023: fix windows test matrix * GIT-2023: mark py39-no-ext as flaky test * GIT-2023: mark flaky test * GIT-2023: make timeout internal to steps for ease of management * GIT-2023: rename image publish step name * GIT-2023: mark keep alive client timeout for linux only * GIT-2023: enable retries on test failure Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
2021-04-06 21:32:01 +01:00
steps:
- name: Checkout the Repository
uses: actions/checkout@v2
id: checkout-branch
- name: Run Unit Tests
uses: harshanarayana/custom-actions@main
with:
python-version: ${{ matrix.config.python-version }}
test-infra-tool: tox
test-infra-version: latest
action: tests
test-additional-args: "-e=${{ matrix.config.tox-env }}"
experimental-ignore-error: "true"
command-timeout: "600000"