-
-
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.
- Loading branch information
1 parent
7432338
commit 762f9ba
Showing
6 changed files
with
3,280 additions
and
66 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 |
---|---|---|
|
@@ -26,16 +26,12 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- name: Install build dependencies | ||
run: python -m pip install build twine | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v5 | ||
- name: Build distribution 📦 | ||
run: python -m build | ||
run: uv build | ||
- name: Check distribution 📦 | ||
run: python -m twine check --strict dist/* | ||
run: uvx twine check --strict dist/* | ||
- name: Upload distribution 📦 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
|
@@ -56,32 +52,27 @@ jobs: | |
- 3.12 | ||
- 3.13 | ||
fail-fast: false | ||
env: | ||
UV_FROZEN: 1 | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
allow-prereleases: true | ||
- name: Lock and sync dependencies | ||
run: | | ||
python -m pip install -U pip pip-tools | ||
pip-compile --all-extras pyproject.toml requirements-dev.in | ||
pip-sync | ||
pip install -e . | ||
- name: Run pre-commit hooks | ||
run: | | ||
make pre-commit | ||
uv run make pre-commit | ||
- name: Run unittests | ||
env: | ||
COLOR: 'yes' | ||
run: | | ||
make mototest | ||
uv run make mototest | ||
- name: Upload coverage to Codecov | ||
if: matrix.python-version == '3.11' | ||
uses: codecov/[email protected] | ||
|
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,31 +13,24 @@ First of all, clone the repository:: | |
|
||
$ git clone [email protected]:aio-libs/aiobotocore.git | ||
|
||
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.8` aiobotocore | ||
Make sure the Python package and project manager `uv <https://docs.astral.sh/uv/>`_ is installed. | ||
|
||
Create a virtual environment:: | ||
|
||
After that, please install libraries required for development:: | ||
|
||
$ pip install pip-tools | ||
$ pip-compile --all-extras pyproject.toml requirements-dev.in | ||
$ pip-sync | ||
$ pip install -e . | ||
$ cd aiobotocore | ||
$ uv venv | ||
|
||
Install pre-commit hooks:: | ||
|
||
$ pre-commit install | ||
$ uv run pre-commit install | ||
|
||
Congratulations, you are ready to run the test suite. | ||
|
||
There are two set of tests, those that can be mocked through `moto <https://github.com/getmoto/moto>`_ running in docker, and those that require running against a personal amazon key. The CI only runs the moto tests. | ||
|
||
To run the moto tests:: | ||
|
||
$ make mototest | ||
$ uv run make mototest | ||
|
||
To run the non-moto tests, make sure you have your amazon key and secret accessible via environment variables:: | ||
|
||
|
@@ -47,15 +40,15 @@ To run the non-moto tests, make sure you have your amazon key and secret accessi | |
|
||
Execute full tests suite:: | ||
|
||
$ make test | ||
$ uv run make test | ||
|
||
Execute full tests suite with coverage:: | ||
|
||
$ make cov | ||
$ uv run make cov | ||
|
||
To run individual use following command:: | ||
|
||
$ pytest -sv tests/test_monitor.py -k test_name | ||
$ uv run pytest -sv tests/test_monitor.py -k test_name | ||
|
||
|
||
Reporting an Issue | ||
|
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.