Skip to content

Commit

Permalink
Merge branch 'trunk' into 9975-unreachable-conch
Browse files Browse the repository at this point in the history
  • Loading branch information
wsanchez authored Oct 9, 2020
2 parents 222dc0a + 8966103 commit 5faf177
Show file tree
Hide file tree
Showing 100 changed files with 7,934 additions and 4,105 deletions.
108 changes: 0 additions & 108 deletions .circleci/config.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/docs.yaml
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
107 changes: 107 additions & 0 deletions .github/workflows/test.yaml
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
63 changes: 63 additions & 0 deletions .github/workflows/wheels.yaml
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
17 changes: 17 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2

sphinx:
fail_on_warning: true

formats:
- pdf
- epub

python:
version: 3.8
system_packages: False
install:
- method: pip
path: .
extra_requirements:
- dev
Loading

0 comments on commit 5faf177

Please sign in to comment.