diff options
-rw-r--r-- | .github/workflows/quality.yml | 104 | ||||
-rw-r--r-- | .github/workflows/testsuite.yml | 34 |
2 files changed, 17 insertions, 121 deletions
diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml deleted file mode 100644 index 0901d5ca..00000000 --- a/.github/workflows/quality.yml +++ /dev/null @@ -1,104 +0,0 @@ -# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 -# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt - -name: "Quality" - -on: - push: - branches: - - master - - nedbat/* - pull_request: - workflow_dispatch: - -defaults: - run: - shell: bash - -env: - PIP_DISABLE_PIP_VERSION_CHECK: 1 - -permissions: - contents: read - -concurrency: - group: "${{ github.workflow }}-${{ github.ref }}" - cancel-in-progress: true - -jobs: - lint: - name: "Pylint etc" - # Because pylint can report different things on different OS's (!) - # (https://github.com/PyCQA/pylint/issues/3489), run this on Mac where local - # pylint gets run. - runs-on: macos-latest - - steps: - - name: "Check out the repo" - uses: "actions/checkout@v3" - - - name: "Install Python" - uses: "actions/setup-python@v4" - with: - python-version: "3.7" # Minimum of PYVERSIONS - cache: pip - cache-dependency-path: 'requirements/*.pip' - - - name: "Install dependencies" - run: | - python -m pip install --require-hashes -r requirements/tox.pip - - - name: "Tox lint" - run: | - python -m tox -e lint - - mypy: - name: "Check types" - runs-on: ubuntu-latest - - steps: - - name: "Check out the repo" - uses: "actions/checkout@v3" - - - name: "Install Python" - uses: "actions/setup-python@v4" - with: - python-version: "3.8" # Minimum of PYVERSIONS, but at least 3.8 - cache: pip - cache-dependency-path: 'requirements/*.pip' - - - name: "Install dependencies" - run: | - # We run on 3.8, but the pins were made on 3.7, so don't insist on - # hashes, which won't match. - python -m pip install -r requirements/tox.pip - - - name: "Tox mypy" - run: | - python -m tox -e mypy - - doc: - name: "Build docs" - runs-on: ubuntu-latest - - steps: - - name: "Check out the repo" - uses: "actions/checkout@v3" - - - name: "Install Python" - uses: "actions/setup-python@v4" - with: - python-version: "3.7" # Minimum of PYVERSIONS - cache: pip - cache-dependency-path: 'requirements/*.pip' - - - name: "Install dependencies" - run: | - set -xe - python -VV - python -m site - python -m pip install --require-hashes -r requirements/tox.pip - - - name: "Tox doc" - run: | - python -m tox -e doc diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index e0798963..3b4a4009 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -36,25 +36,25 @@ jobs: matrix: os: - ubuntu - - macos - - windows + #- macos + #- windows python-version: # When changing this list, be sure to check the [gh-actions] list in # tox.ini so that tox will run properly. PYVERSIONS # Available versions: # https://github.com/actions/python-versions/blob/main/versions-manifest.json # https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#available-versions-of-python-and-pypy - - "3.7" + #- "3.7" - "3.8" - "3.9" - - "3.10" - - "3.11" - - "pypy-3.7" - - "pypy-3.9" - exclude: - # Windows PyPy-3.9 always gets killed. - - os: windows - python-version: "pypy-3.9" + #- "3.10" + #- "3.11" + #- "pypy-3.7" + #- "pypy-3.9" + #exclude: + # # Windows PyPy-3.9 always gets killed. + # - os: windows + # python-version: "pypy-3.9" fail-fast: false steps: @@ -79,13 +79,13 @@ jobs: - name: "Run tox for ${{ matrix.python-version }}" run: | - python -m tox -- -rfsEX + python -m tox -- -rfsEX -k test_debug - - name: "Retry tox for ${{ matrix.python-version }}" - if: failure() - run: | - # `exit 1` makes sure that the job remains red with flaky runs - python -m tox -- -rfsEX --lf -vvvvv && exit 1 + #- name: "Retry tox for ${{ matrix.python-version }}" + # if: failure() + # run: | + # # `exit 1` makes sure that the job remains red with flaky runs + # python -m tox -- -rfsEX --lf -vvvvv && exit 1 # This job aggregates test results. It's the required check for branch protection. # https://github.com/marketplace/actions/alls-green#why |