check old python versions

This commit is contained in:
James Woglom
2024-10-01 17:25:26 -04:00
parent ff395ffa3e
commit ead7ab883b
+30 -6
View File
@@ -10,12 +10,11 @@ on:
branches: [ master, develop ]
jobs:
build:
build_old_python_versions:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
@@ -23,12 +22,14 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- &install_deps
name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest pipenv
pipenv install --system
- name: Run pipenv check
- &pipenv_check
name: Run pipenv check
run: |
# DDoS attacks in wheel and setuptools packages, not relevant
# root certificate store, not relevant
@@ -47,12 +48,35 @@ jobs:
--ignore 71064 \
--ignore 71608 \
--ignore 72236
- name: Lint with flake8
- &flake8_lint
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
- &check_run_help
name: Run tconnectsync --help
run: |
tconnectsync --help
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- *install_deps
- *pipenv_check
- *flake8_lint
- *check_run_help
- name: Test with pytest
run: |
pytest