1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

main.yml: Enforce that use of @pytest.mark.online remains complete

This commit is contained in:
Sebastian Pipping
2023-06-18 16:59:13 +02:00
parent b9cab239a7
commit d66392a3fb

View File

@@ -31,5 +31,13 @@ jobs:
- name: Run tests with tox
run: tox
- name: Run offline tests with tox with no access to the Internet
run: |
# We're using unshare to take Internet access
# away from tox so that we'll notice whenever some new test
# is missing @pytest.mark.online decoration in the future
unshare --map-root-user --net -- \
sh -c 'ip link set lo up; tox -- -m "not online"'
- name: Run coverage
run: codecov