From e55cc24a07727890ca02c5dc7d92c58b32360efa Mon Sep 17 00:00:00 2001 From: Thomas Calmant Date: Thu, 13 Mar 2025 19:00:24 +0100 Subject: [PATCH 1/5] Fixed coveralls secret name --- .github/workflows/build-20.04.yml | 2 +- .github/workflows/build-24.04.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-20.04.yml b/.github/workflows/build-20.04.yml index 8d01623..6b32894 100644 --- a/.github/workflows/build-20.04.yml +++ b/.github/workflows/build-20.04.yml @@ -41,7 +41,7 @@ jobs: coverage run -m pytest - name: Coveralls env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }} + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} run: | pip install coveralls coveralls diff --git a/.github/workflows/build-24.04.yml b/.github/workflows/build-24.04.yml index 7cc5cfe..cc006f8 100644 --- a/.github/workflows/build-24.04.yml +++ b/.github/workflows/build-24.04.yml @@ -41,7 +41,7 @@ jobs: coverage run -m pytest - name: Coveralls env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }} + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} run: | pip install coveralls coveralls From ca9e1e8749e4a52b9539bb12d1fa4705c6e6fb3f Mon Sep 17 00:00:00 2001 From: Thomas Calmant Date: Thu, 13 Mar 2025 19:02:12 +0100 Subject: [PATCH 2/5] Python 3.4 is only available on Ubuntu 18.04 --- .github/workflows/build-18.04.yml | 47 +++++++++++++++++++++++++++++++ .github/workflows/build-20.04.yml | 4 +-- 2 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build-18.04.yml diff --git a/.github/workflows/build-18.04.yml b/.github/workflows/build-18.04.yml new file mode 100644 index 0000000..b732203 --- /dev/null +++ b/.github/workflows/build-18.04.yml @@ -0,0 +1,47 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: CI Build - Python 3.4 + +on: + push: + branches: [ "master" ] + tags: '**' + pull_request: + branches: [ "master" ] + +jobs: + build: + timeout-minutes: 10 + runs-on: ubuntu-18.04 + strategy: + fail-fast: false + matrix: + python-version: ["3.4"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install flake8 pytest coverage + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # 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: Test + run: | + coverage run -m pytest + - name: Coveralls + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + run: | + pip install coveralls + coveralls diff --git a/.github/workflows/build-20.04.yml b/.github/workflows/build-20.04.yml index 6b32894..db2d1c4 100644 --- a/.github/workflows/build-20.04.yml +++ b/.github/workflows/build-20.04.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions -name: CI Build - Python 3.4-3.7 +name: CI Build - Python 3.5-3.7 on: push: @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.4", "3.5", "3.6", "3.7"] + python-version: ["3.5", "3.6", "3.7"] steps: - uses: actions/checkout@v4 From 078db5a84902ba55ad08d62f9adbbf51947a0e94 Mon Sep 17 00:00:00 2001 From: Thomas Calmant Date: Thu, 13 Mar 2025 19:11:08 +0100 Subject: [PATCH 3/5] Trust pypi SSL certificates for older Python versions --- .github/workflows/build-18.04.yml | 2 ++ .github/workflows/build-20.04.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/build-18.04.yml b/.github/workflows/build-18.04.yml index b732203..a3c0fcb 100644 --- a/.github/workflows/build-18.04.yml +++ b/.github/workflows/build-18.04.yml @@ -25,6 +25,8 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + env: + PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org" - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/build-20.04.yml b/.github/workflows/build-20.04.yml index db2d1c4..2d8a2bc 100644 --- a/.github/workflows/build-20.04.yml +++ b/.github/workflows/build-20.04.yml @@ -25,6 +25,8 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + env: + PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org" - name: Install dependencies run: | python -m pip install --upgrade pip From 59f07a642658392dc347a01e6e925544d7384476 Mon Sep 17 00:00:00 2001 From: Thomas Calmant Date: Thu, 13 Mar 2025 19:16:40 +0100 Subject: [PATCH 4/5] Added missing coverage in 24.04 CI --- .github/workflows/build-24.04.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-24.04.yml b/.github/workflows/build-24.04.yml index cc006f8..4c25cf3 100644 --- a/.github/workflows/build-24.04.yml +++ b/.github/workflows/build-24.04.yml @@ -28,7 +28,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install flake8 pytest + python -m pip install flake8 pytest coverage if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | From d25a574f931f5684e8b8aed34ab867a63ab63fb3 Mon Sep 17 00:00:00 2001 From: Thomas Calmant Date: Fri, 14 Mar 2025 10:53:29 +0100 Subject: [PATCH 5/5] Removed Python 3.4 from CI build Builds are queued indefinitely waiting for an Ubuntu 18.04 runner --- .github/workflows/build-18.04.yml | 49 ------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 .github/workflows/build-18.04.yml diff --git a/.github/workflows/build-18.04.yml b/.github/workflows/build-18.04.yml deleted file mode 100644 index a3c0fcb..0000000 --- a/.github/workflows/build-18.04.yml +++ /dev/null @@ -1,49 +0,0 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: CI Build - Python 3.4 - -on: - push: - branches: [ "master" ] - tags: '**' - pull_request: - branches: [ "master" ] - -jobs: - build: - timeout-minutes: 10 - runs-on: ubuntu-18.04 - strategy: - fail-fast: false - matrix: - python-version: ["3.4"] - - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - env: - PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install flake8 pytest coverage - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - run: | - # 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: Test - run: | - coverage run -m pytest - - name: Coveralls - env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} - run: | - pip install coveralls - coveralls