-
-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/4.11.0' into master
- Loading branch information
Showing
16 changed files
with
16,048 additions
and
10,751 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 |
---|---|---|
@@ -0,0 +1,126 @@ | ||
name: Publishing | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
|
||
tests: | ||
name: Run tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- run: pip install tox | ||
- run: tox | ||
env: | ||
TOXENV: 3.9 | ||
|
||
linters: | ||
name: Run linters | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
toxenv: [flake8, pydocstyle, mypy, pylint] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- run: pip install tox | ||
- run: tox | ||
env: | ||
TOXENV: ${{ matrix.toxenv }} | ||
|
||
build-sdist: | ||
name: Build source tarball | ||
needs: [tests, linters] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- run: python setup.py sdist | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./dist/* | ||
|
||
build-wheels: | ||
name: Build wheels | ||
needs: [tests, linters] | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- run: pip install cibuildwheel==1.8.0 | ||
- name: Install Visual C++ for Python 2.7 on Windows | ||
if: runner.os == 'Windows' | ||
run: | | ||
choco install vcpython27 -f -y | ||
- run: cibuildwheel --output-dir wheelhouse | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
|
||
build-wheels-linux-aarch64: | ||
name: Build wheels (ubuntu-latest-aarch64) | ||
needs: [tests, linters] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- run: pip install cibuildwheel==1.8.0 | ||
- run: cibuildwheel --archs aarch64 --output-dir wheelhouse | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
|
||
publish: | ||
name: Publish on PyPI | ||
needs: [build-sdist, build-wheels, build-wheels-linux-aarch64] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: artifact | ||
path: dist | ||
- uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
|
||
publish-docs: | ||
name: Publish docs | ||
needs: [publish] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- run: pip install -r requirements-doc.txt | ||
- run: pip install awscli | ||
- run: pip install -e . | ||
- run: (cd docs && make clean html) | ||
- run: | | ||
aws s3 sync docs/_build/html s3://python-dependency-injector-docs --delete | ||
aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }} --path "/*" > /dev/null | ||
echo "Cache invalidation triggered" | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} |
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,55 @@ | ||
name: Tests and linters | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
|
||
test-on-different-versions: | ||
name: Run tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2, pypy3] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- run: pip install tox | ||
- run: tox | ||
env: | ||
TOXENV: ${{ matrix.python-version }} | ||
|
||
test-coverage: | ||
name: Run tests with coverage | ||
runs-on: ubuntu-latest | ||
env: | ||
DEPENDENCY_INJECTOR_DEBUG_MODE: 1 | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- run: pip install tox cython | ||
- run: make cythonize | ||
- run: tox | ||
env: | ||
TOXENV: coveralls | ||
|
||
linters: | ||
name: Run linters | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
toxenv: [flake8, pydocstyle, mypy, pylint] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- run: pip install tox | ||
- run: tox | ||
env: | ||
TOXENV: ${{ matrix.toxenv }} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.