Skip to content
Snippets Groups Projects
Unverified Commit b5c66c6f authored by ulif's avatar ulif
Browse files

Remove coverage tests from gh workflow.

As github workflows do not support Python2.7, we cannot run coverage
tests (they succeed only, if all Python3 and Python2 parts were tested)
nor Python2.7 tests on github.

We therefore remove both, tests for Python2.7 and coverage tests, from
the github workflow.

The default behavior of the local `tox.ini` still runs these tests and
therefore requires an installed Python2.7 version.
parent ea27e56a
No related branches found
No related tags found
No related merge requests found
# This workflow will install Python dependencies, run tests and lint with different versions of Python # This workflow will install Python dependencies, run tests and lint with different versions of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
# As github support for Python2.7 has gone to meet its maker, we cannot
# run successful coverage tests here.
name: tests name: tests
on: on:
...@@ -19,28 +22,19 @@ jobs: ...@@ -19,28 +22,19 @@ jobs:
matrix: matrix:
os: os:
- ubuntu-latest - ubuntu-latest
config:
#- [ "2.7", "py27"]
#- [ "3.5", "py35"]
#- [ "3.6", "py36"]
#- [ "3.7", "py37"]
#- [ "3.8", "py38"]
- [ "3.9", "lint,clean,py27,py39,report"]
#- [ "pypy-2.7", "pypy"]
#- [ "pypy-3.7", "pypy3"]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.config[0] }} - name: Set up Python (3.9)
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
# We can give multiple python versions, but no py2.x any more
python-version: | python-version: |
"2.7" "3.9"
${{ matrix.config[0] }}
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install tox pip install tox
- name: Test with tox - name: Test with tox
run: | run: |
tox -e ${{ matrix.config[1] }} tox run -e "lint,py39"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment