From c15ed91d79f996df877e3265c580a873855f5640 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 19 Aug 2019 07:54:05 +0200 Subject: [PATCH] Test only on Python 3.7 With the last build we know that Python 2.7 is successful in 1h30 so now we can focus only on Python 3.7 --- .github/workflows/pythonpackage.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 5174194c8b4a2b..855401842a6c93 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -6,9 +6,10 @@ jobs: build: runs-on: ubuntu-latest strategy: - max-parallel: 2 + max-parallel: 1 matrix: - python-version: [2.7] #, 3.7] # 3.5, 3.6, + # GitHub Actions / build (2.7) successful in 1h 30m 7s + python-version: [3.7] # [2.7, 3.5, 3.6,, 3.7] steps: - uses: actions/checkout@v1 - name: Set up Python ${{ matrix.python-version }} @@ -19,17 +20,10 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt || true - - name: Lint with flake8 - run: | - pip install flake8 - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: make lint run: | make lint - name: make test run: | python ./configure.py - make test || true # When the Python 3 run fails, allow the Python 2 run to complete + make test