diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 73bbcaa..2284377 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,6 +23,10 @@ jobs: pip install -r extra.py2.txt if: matrix.python-version == '2.7' - run: ADAPTER=tiny python setup.py test + - run: | + pip install black + black . --check + if: matrix.python-version == '3.12' - run: pip install twine wheel - run: python setup.py sdist bdist_wheel - run: python -m twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/* diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 872139f..051d0a2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,7 +5,19 @@ jobs: name: Build strategy: matrix: - python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, rc] + python-version: [ + 2.7, + 3.5, + 3.6, + 3.7, + 3.8, + 3.9, + "3.10", + "3.11", + "3.12", + latest, + rc + ] runs-on: ubuntu-latest container: python:${{ matrix.python-version }} steps: @@ -19,6 +31,10 @@ jobs: pip install -r requirements.py2.txt pip install -r extra.py2.txt if: matrix.python-version == '2.7' + - run: | + pip install black + black . --check + if: matrix.python-version == '3.12' - run: ADAPTER=tiny python setup.py test build-pypy: name: Build PyPy @@ -38,4 +54,8 @@ jobs: pip install -r requirements.py2.txt pip install -r extra.py2.txt if: matrix.python-version == '2.7' + - run: | + pip install black + black . --check + if: matrix.python-version == '3.12' - run: ADAPTER=tiny pypy setup.py test