-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump minimum aiohttp req and add aiohttp tests (#1033)
- Loading branch information
Showing
13 changed files
with
59 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,15 @@ on: | |
|
||
jobs: | ||
test: | ||
name: Test ${{ matrix.python-version }} | ||
name: Test Python ${{ matrix.python-version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] | ||
python-version: ['3.8', '3.9', '3.10', '3.11'] | ||
include: | ||
- aiohttp-version: '==3.7.4.post0' | ||
- aiohttp-version: '<4.0.0' | ||
python-version: '3.11' | ||
fail-fast: true | ||
timeout-minutes: 15 | ||
steps: | ||
|
@@ -28,17 +32,16 @@ jobs: | |
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
# cache: 'pipenv' | ||
- name: Download dependencies | ||
- name: Lock and sync dependencies | ||
env: | ||
AIOHTTP_VERSION: ${{ matrix.aiohttp-version }} | ||
run: | | ||
python -c "import sys; print(f'Python version: {sys.version}')" | ||
python -m pip install -U setuptools pip pipenv codecov wheel | ||
pipenv lock --python ${{ matrix.python-version }} | ||
pipenv sync --dev | ||
pipenv check || true | ||
pipenv graph | ||
python -m pip install -U setuptools pip codecov wheel pip-tools | ||
time pip-compile requirements-dev.in | ||
time pip-sync requirements-dev.txt | ||
- name: Run flake | ||
if: matrix.python-version != '3.7' | ||
if: matrix.python-version == '3.11' | ||
run: | | ||
make flake | ||
- name: Run unittests | ||
|
@@ -47,6 +50,7 @@ jobs: | |
run: | | ||
make mototest | ||
- name: Upload coverage to Codecov | ||
if: matrix.python-version == '3.11' | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,17 +13,17 @@ First of all, clone the repository:: | |
|
||
$ git clone [email protected]:aio-libs/aiobotocore.git | ||
|
||
Create virtualenv with at least python3.5 (older versions are not supported). | ||
Create virtualenv with at least python3.8 (older versions are not supported). | ||
For example, using *virtualenvwrapper* commands could look like:: | ||
|
||
$ cd aiobotocore | ||
$ mkvirtualenv --python=`which python3.5` aiobotocore | ||
$ mkvirtualenv --python=`which python3.8` aiobotocore | ||
|
||
|
||
After that, please install libraries required for development:: | ||
|
||
$ pipenv lock | ||
$ pipenv sync --dev | ||
$ pip-compile requirements-dev.in | ||
$ pip-sync requirements-dev.txt | ||
|
||
Congratulations, you are ready to run the test suite:: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '2.5.4' | ||
__version__ = '2.6.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
codecov~=2.1.13 | ||
coverage~=7.2.7 | ||
flake8~=3.9.0 | ||
flake8-formatter-abspath~=1.0.1 | ||
flake8-black~=0.3.3 | ||
flake8-isort~= 4.1.1 | ||
black~=22.6.0 | ||
isort~= 5.10.1 | ||
docker~=5.0.0 | ||
moto[server,s3,sqs,lambda,dynamodb,cloudformation,sns,batch,ec2,rds]~=4.0.0 | ||
pytest~=6.2.4 | ||
pytest-cov~=4.1.0 | ||
pytest-asyncio~=0.14.0 | ||
pytest-xdist~=2.2.1 | ||
|
||
# this is needed for test_patches | ||
dill~=0.3.3 | ||
|
||
# this is needed when running setup.py check -rms | ||
Pygments | ||
|
||
aiohttp${AIOHTTP_VERSION} | ||
|
||
-e .[awscli,boto3] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters