-
Notifications
You must be signed in to change notification settings - Fork 33
65 lines (55 loc) · 1.69 KB
/
pythonpackage.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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 }}