CI: make sure that tests run without internet connection (#5284)
This commit is contained in:
parent
35703b0b6b
commit
b42b3ce1ad
|
@ -88,6 +88,13 @@ jobs:
|
||||||
python-version: ${{ matrix.py }}
|
python-version: ${{ matrix.py }}
|
||||||
- run: pip install tox
|
- run: pip install tox
|
||||||
- run: tox -e py
|
- run: tox -e py
|
||||||
|
if: matrix.os != 'ubuntu-latest'
|
||||||
|
# make sure that tests run without network connection
|
||||||
|
- name: Run tox -e py (without internet)
|
||||||
|
run: |
|
||||||
|
tox -e py --notest
|
||||||
|
sudo unshare --net -- sh -c "ip link set lo up; $(which tox) -e py"
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
- uses: codecov/codecov-action@a1ed4b322b4b38cb846afb5a0ebfa17086917d27
|
- uses: codecov/codecov-action@a1ed4b322b4b38cb846afb5a0ebfa17086917d27
|
||||||
# mirrored below and at https://github.com/mitmproxy/mitmproxy/settings/actions
|
# mirrored below and at https://github.com/mitmproxy/mitmproxy/settings/actions
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue