forked from twisted/twisted
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'trunk' into 9983-mypy-application
- Loading branch information
Showing
106 changed files
with
7,951 additions
and
4,146 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Documentation | ||
|
||
on: | ||
push: | ||
branches: [ trunk ] | ||
pull_request: | ||
branches: [ trunk ] | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Get pip cache dir | ||
id: pip-cache | ||
run: | | ||
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)" | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip tox | ||
tox --notest -e narrativedocs,apidocs | ||
- name: Check the narrative documentation | ||
run: | | ||
tox -q -e narrativedocs | ||
- name: Check the API documentation | ||
run: | | ||
tox -q -e apidocs |
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,107 @@ | ||
name: Run tests | ||
|
||
on: | ||
push: | ||
branches: [ trunk ] | ||
pull_request: | ||
branches: [ trunk ] | ||
|
||
jobs: | ||
testing: | ||
runs-on: ubuntu-20.04 | ||
env: | ||
TOXENV: "alldeps-withcov-posix,coverage-prepare,codecov-push,coveralls-push" | ||
strategy: | ||
matrix: | ||
python-version: [3.5, 3.6, 3.7, 3.8, 3.9.0-rc.2, pypy3] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Display Python information | ||
run: | | ||
python --version | ||
python -c "import sys; print(sys.prefix)" | ||
python -c "import sys; print(sys.exec_prefix)" | ||
python -c "import sys; print(sys.executable)" | ||
python -c "import struct; print(struct.calcsize('P') * 8)" | ||
python -c "print('\nENVIRONMENT VARIABLES\n=====================\n\n')" | ||
python -c "import os; [ print(e,v) for (e,v) in os.environ.items() ]" | ||
- name: Get pip cache dir | ||
id: pip-cache | ||
run: | | ||
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)" | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip tox | ||
tox --notest | ||
- name: Test | ||
run: | | ||
python --version | ||
tox -q | ||
# We need a builder without IPv6. This is going to be slower than all the | ||
# others, but that's ok. | ||
testing_no_ipv6: | ||
runs-on: ubuntu-20.04 | ||
env: | ||
DISABLE_IPV6: yes | ||
TOXENV: "alldeps-withcov-posix,coverage-prepare,codecov-push,coveralls-push" | ||
strategy: | ||
matrix: | ||
python-version: [3.6] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Get pip cache dir | ||
id: pip-cache | ||
run: | | ||
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)" | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Display Python information | ||
run: | | ||
python --version | ||
python -c "import sys; print(sys.prefix)" | ||
python -c "import sys; print(sys.exec_prefix)" | ||
python -c "import sys; print(sys.executable)" | ||
python -c "import struct; print(struct.calcsize('P') * 8)" | ||
python -c "print('\nENVIRONMENT VARIABLES\n=====================\n\n')" | ||
python -c "import os; [ print(e,v) for (e,v) in os.environ.items() ]" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip tox | ||
tox --notest | ||
- name: Test | ||
run: | | ||
python --version | ||
tox -q |
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,63 @@ | ||
name: Build wheels | ||
|
||
on: | ||
push: | ||
branches: [ trunk ] | ||
pull_request: | ||
branches: [ trunk ] | ||
|
||
jobs: | ||
build_wheel: | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
TOXENV: "wheel" | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04 , macos-10.15, windows-2019] | ||
python-version: [3.5, 3.6, 3.7, 3.8, 3.9.0-rc.2] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Display Python information | ||
run: | | ||
python --version | ||
python -c "import sys; print(sys.prefix)" | ||
python -c "import sys; print(sys.exec_prefix)" | ||
python -c "import sys; print(sys.executable)" | ||
python -c "import struct; print(struct.calcsize('P') * 8)" | ||
python -c "print('\nENVIRONMENT VARIABLES\n=====================\n\n')" | ||
python -c "import os; [ print(e,v) for (e,v) in os.environ.items() ]" | ||
- name: Get pip cache dir | ||
id: pip-cache | ||
run: | | ||
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)" | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip tox | ||
tox --notest | ||
- name: Build wheels on ${{ runner.os }} / Python ${{ matrix.python-version }} | ||
run: | | ||
python --version | ||
tox -q | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: twisted-artifact-${{ runner.os }}-${{ matrix.python-version }} | ||
path: ${{ github.workspace }}/dist/*.whl | ||
if-no-files-found: error |
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,17 @@ | ||
version: 2 | ||
|
||
sphinx: | ||
fail_on_warning: true | ||
|
||
formats: | ||
- epub | ||
|
||
python: | ||
version: 3.8 | ||
system_packages: False | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- dev |
Oops, something went wrong.