From 5dcaad712efb235c4b12ade759f702f025bd6310 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 1 Dec 2020 21:49:33 +0100 Subject: [PATCH] Move failing pre-commit linters to GHA Ref #343 --- .github/workflows/python-linters.yml | 10 +++++++++- .travis.yml | 10 ---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/python-linters.yml b/.github/workflows/python-linters.yml index cafdbb550f..22702a543d 100644 --- a/.github/workflows/python-linters.yml +++ b/.github/workflows/python-linters.yml @@ -21,11 +21,19 @@ jobs: - ubuntu-latest toxenv: - pre-commit - # - pre-commit-failing - setup-check - build-docs - spellcheck-docs - linkcheck-docs + experimental: + - false + include: + - experimental: true + os: ubuntu-latest + python-version: 3.9 + toxenv: pre-commit-failing + + continue-on-error: ${{ matrix.experimental }} env: TOX_PARALLEL_NO_SPINNER: 1 diff --git a/.travis.yml b/.travis.yml index 4c1a96f3d5..a810ffd40e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,8 +11,6 @@ python: - &pypy3 pypy3 _base_envs: -- &stage_lint - stage: &stage_lint_name lint - &stage_test_priority stage: &stage_test_priority_name test against latest Python versions first (under GNU/Linux) - &stage_deploy @@ -28,19 +26,12 @@ _base_envs: jobs: fast_finish: true allow_failures: - - env: TOXENV=pre-commit-failing - python: nightly include: - python: pypy env: PYTEST_ADDOPTS: >- '-p no:warnings' - - <<: *stage_lint - name: temporary failing pre-commit.com tool linters - env: TOXENV=pre-commit-failing - # Some linters depend on pyyaml, which fails under Python 3.7 now: - python: 3.6 - after_failure: skip - <<: *pure_python_base_priority python: 3.8 - <<: *pure_python_base_priority @@ -91,6 +82,5 @@ after_failure: - echo Outputting python invocation log from $py_log - cat $py_log stages: -- *stage_lint_name - *stage_test_priority_name - name: *stage_deploy_name