Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(CI): work around Sphinx and codecov-action issues #1862

Merged
merged 1 commit into from
Feb 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .github/workflows/create-wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Set up Python
uses: actions/[email protected]
Expand All @@ -65,11 +67,7 @@ jobs:
FALCON_ASGI_WRAP_NON_COROUTINES: Y
FALCON_TESTING_SESSION: Y
run: |
# TODO(kgriffs): Revisit second half of 2021 to see if we still need to pin tox
#
# See also: https://github.com/tox-dev/tox/issues/1777
#
pip install 'tox==3.20'
pip install tox
tox -e wheel_check -- ${{ matrix.pytest-extra }}

- name: Get wheel name
Expand Down Expand Up @@ -132,6 +130,8 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Get python version
id: linux-py-version
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
FALCON_ASGI_WRAP_NON_COROUTINES: Y
FALCON_TESTING_SESSION: Y
run: |
pip install 'tox==3.20'
pip install tox
tox -e wheel_check -- ${{ matrix.pytest-extra }}

- name: Get wheel names
Expand Down Expand Up @@ -255,6 +255,8 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Set up Python
uses: actions/[email protected]
Expand Down Expand Up @@ -325,6 +327,8 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Cache wheels
uses: actions/cache@v2
Expand Down Expand Up @@ -357,7 +361,7 @@ jobs:
args: |
bash -c "
export PATH=/opt/python/${{ matrix.python-version }}/bin:$PATH &&
pip install 'tox==3.20' 'pip>=20' &&
pip install tox 'pip>=20' &&
tox -e wheel_check -- ${{ matrix.pytest-extra }}
"

Expand All @@ -381,7 +385,7 @@ jobs:
args: |
bash -c "
export PATH=/opt/python/${{ matrix.python-version }}/bin:$PATH &&
pip install 'tox==3.20' 'pip>=20' &&
pip install tox 'pip>=20' &&
tox -e wheel_check -- ${{ matrix.pytest-extra }}
"

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/tests-emulated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Cache PIP
uses: actions/cache@v2
Expand Down Expand Up @@ -49,7 +51,7 @@ jobs:
lscpu &&
mkdir -p $PIP_CACHE_DIR &&
chown -R $(whoami) $PIP_CACHE_DIR &&
pip install -U pip tox==3.20 &&
pip install -U pip tox &&
python --version &&
pip --version &&
tox --version &&
Expand All @@ -67,7 +69,7 @@ jobs:
lscpu &&
mkdir -p $PIP_CACHE_DIR &&
chown -R $(whoami) $PIP_CACHE_DIR &&
pip install -U pip tox==3.20 &&
pip install -U pip tox &&
python --version &&
pip --version &&
tox --version &&
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2
# NOTE(vytas): Work around
# https://github.com/codecov/codecov-action/issues/190
with:
fetch-depth: 2

- name: Set up Python
uses: actions/[email protected]
Expand Down Expand Up @@ -113,7 +117,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coverage tox==3.20
pip install coverage tox
python --version
pip --version
tox --version
Expand Down
4 changes: 3 additions & 1 deletion requirements/docs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ jinja2
markupsafe
pygments
pygments-style-github
sphinx
# TODO(vytas): Revisit later if Sphinx 3.5.0 issues have been resolved.
# See also: https://github.com/sphinx-doc/sphinx/issues/8880
sphinx < 3.5.0
sphinx_rtd_theme
sphinx-tabs
6 changes: 1 addition & 5 deletions tools/mintest.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/usr/bin/env bash

# TODO(kgriffs): Revisit second half of 2021 to see if we still need to pin tox
#
# See also: https://github.com/tox-dev/tox/issues/1777
#
pip install -U tox==3.20 coverage
pip install -U tox coverage

rm -f .coverage.*

Expand Down