Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Aug 14, 2023
1 parent 9dbdce0 commit 919fa67
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,10 @@ jobs:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- name: Disable network connectivity
- name: Update network connectivity
run: |
ip netns add jail
ip netns exec jail /bin/bash
ip addr add 127.0.0.1/8 dev lo
ip link set dev lo up
exit
sudo ethtool -K eth0 tx off rx off
install bwrap unshare
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -56,7 +53,7 @@ jobs:
- name: Run tests
run: |
ip netns exec jail su user -c 'python3 -m coverage run -m unittest'
bwrap --bind / / --dev /dev --unshare-net python3 -m coverage run -m unittest
- name: Run linting
run: pre-commit run --all-files
Expand Down

0 comments on commit 919fa67

Please sign in to comment.