Fix ci #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python package | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: "${{ matrix.os }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.8] | |
os: ["ubuntu-latest", "windows-latest", "macos-latest"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install tox | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox | |
- name: Setup network interfaces | |
if: ${{ startsWith(matrix.os, 'ubuntu') }} | |
run: | | |
set -x | |
sudo ip link add type veth | |
sudo ip link set dev veth0 address 02:00:00:00:00:00 name feth0 | |
sudo ip link set dev veth1 address 02:00:00:00:00:01 name feth1 | |
sudo ip link set up dev feth0 | |
sudo ip link set up dev feth1 | |
sudo ip addr show dev feth0 | |
sudo ip addr show dev feth1 | |
- name: Setup network interfaces | |
if: ${{ startsWith(matrix.os, 'macos') }} | |
run: | | |
set -x | |
sudo ifconfig feth0 create inet6 fe80::ff:fe00:0 lladdr 02:00:00:00:00:00 | |
sudo ifconfig feth1 create inet6 fe80::ff:fe00:1 lladdr 02:00:00:00:00:01 | |
sudo ifconfig feth0 peer feth1 | |
sudo ifconfig feth0 up | |
sudo ifconfig feth1 up | |
sudo ifconfig feth0 | |
sudo ifconfig feth1 | |
- name: Run tests, flake8 and mypy | |
run: | | |
false | |
tox | |
- name: "Upload coverage to Codecov" | |
uses: "codecov/codecov-action@v4" | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} |