drop py3.6. Misc housekeeping

This commit is contained in:
Alex Mykyta
2025-01-04 23:23:15 -08:00
parent 28ed82129f
commit 0258cac186
6 changed files with 37 additions and 133 deletions

View File

@@ -19,10 +19,9 @@ jobs:
strategy:
matrix:
python-version:
- 3.6
- 3.7
- 3.8
- 3.9
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
@@ -30,20 +29,17 @@ jobs:
- os: ubuntu-latest
# older versions need older OS
- python-version: 3.6
os: ubuntu-20.04
- python-version: "3.7"
os: ubuntu-22.04
- python-version: "3.8"
os: ubuntu-22.04
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7 to bootstrap py3.6
if: ${{ matrix.python-version == '3.6' }}
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
@@ -51,22 +47,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -U -r tests/requirements.txt
# Python 3.6 cannot install directly from a pyproject.toml
# Instead, build a wheel from py3.7 and then install it
- name: Install via wheel
if: ${{ matrix.python-version == '3.6' }}
run: |
python3.7 -m pip install build
python3.7 -m build
python --version
python -m pip install ./dist/*.whl
python -m pip install -r tests/requirements.txt
- name: Install
if: ${{ matrix.python-version != '3.6' }}
run: |
python -m pip install .
python -m pip install ".[cli]"
- name: Test
run: |
@@ -95,7 +80,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: true
run: |
python -m pip install -U coveralls>=3.0.0
python -m pip install coveralls>=3.0.0
coveralls --service=github --finish
#-------------------------------------------------------------------------------
@@ -110,11 +95,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -U pylint
python -m pip install -r tests/requirements.txt
- name: Install
run: |
python -m pip install .
python -m pip install ".[cli]"
- name: Run Lint
run: |
@@ -132,7 +117,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install mypy types-setuptools
python -m pip install -r tests/requirements.txt
- name: Install
run: |
python -m pip install ".[cli]"
- name: Type Check
run: |
@@ -156,13 +145,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -U build
python -m pip install build
- name: Build sdist
run: python -m build
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist
path: |
dist/*.tar.gz
dist/*.whl
@@ -180,9 +170,9 @@ jobs:
# Only publish when a GitHub Release is created.
if: github.event_name == 'release'
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
name: dist
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1