From 714151194153976d4dcbce62bfb27f1b2173c9c1 Mon Sep 17 00:00:00 2001 From: Stuart Longland Date: Sat, 4 May 2024 19:16:24 +1000 Subject: [PATCH] github actions: Drop dedicated per-version checks --- .github/workflows/python-3.10.yml | 37 ------------------------------- .github/workflows/python-3.5.yml | 30 ------------------------- .github/workflows/python-3.9.yml | 37 ------------------------------- 3 files changed, 104 deletions(-) delete mode 100644 .github/workflows/python-3.10.yml delete mode 100644 .github/workflows/python-3.5.yml delete mode 100644 .github/workflows/python-3.9.yml diff --git a/.github/workflows/python-3.10.yml b/.github/workflows/python-3.10.yml deleted file mode 100644 index 4c46672..0000000 --- a/.github/workflows/python-3.10.yml +++ /dev/null @@ -1,37 +0,0 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: Test on Python 3.10 - -on: ["push", "pull_request"] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.10 - uses: actions/setup-python@v2 - with: - python-version: "3.10" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest coverage coverage-lcov toml pint - 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 . --extend-exclude=aioax25/aiosupport/py34/,tests/test_aiosupport/py34/,tests/test_kiss/py34/ --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. - flake8 . --extend-exclude=aioax25/aiosupport/py34/,tests/test_aiosupport/py34/,tests/test_kiss/py34/ --count --exit-zero --max-complexity=10 --statistics - - name: Test with py.test - run: | - coverage run -m pytest - coverage-lcov - - name: Coveralls - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./lcov.info diff --git a/.github/workflows/python-3.5.yml b/.github/workflows/python-3.5.yml deleted file mode 100644 index 03a25be..0000000 --- a/.github/workflows/python-3.5.yml +++ /dev/null @@ -1,30 +0,0 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: Test on Python 3.5 - -on: ["push", "pull_request"] - -jobs: - build: - runs-on: ubuntu-20.04 - - steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.5 - uses: actions/setup-python@v4 - with: - python-version: "3.5" - - name: Install dependencies - run: | - pip install flake8 pytest pytest-cov pint - 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. - flake8 . --count --exit-zero --max-complexity=10 --statistics - - name: Test with py.test (no coveralls) - run: | - python -m pytest --cov=aioax25 --cov-report=term-missing diff --git a/.github/workflows/python-3.9.yml b/.github/workflows/python-3.9.yml deleted file mode 100644 index 13423d6..0000000 --- a/.github/workflows/python-3.9.yml +++ /dev/null @@ -1,37 +0,0 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: Test on Python 3.9 - -on: ["push", "pull_request"] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.9 - uses: actions/setup-python@v2 - with: - python-version: 3.9 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest coverage coverage-lcov toml pint - 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 . --extend-exclude=aioax25/aiosupport/py34/,tests/test_aiosupport/py34/,tests/test_kiss/py34/ --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. - flake8 . --extend-exclude=aioax25/aiosupport/py34/,tests/test_aiosupport/py34/,tests/test_kiss/py34/ --count --exit-zero --max-complexity=10 --statistics - - name: Test with py.test - run: | - coverage run -m pytest - coverage-lcov - - name: Coveralls - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./lcov.info