Repository navigation
57 lines (52 loc) · 1.77 KB
/
Copy pathtesting.yml
File metadata and controls
57 lines (52 loc) · 1.77 KB
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
# This workflow will install Python dependencies and run tests with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Testing
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
env:
LOG_DIR: /var/log/firewheel
MINIMEGA_CONFIG: /etc/minimega/minimega.conf
# Set the FIREWHEEL environment variables
EXPERIMENT_INTERFACE: lo
MM_BASE: /tmp/minimega
MM_INSTALL_DIR: /opt/minimega
GRPC_HOSTNAME: localhost
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # full history
fetch-tags: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y tar net-tools procps uml-utilities \
openvswitch-switch qemu-kvm qemu-utils dnsmasq \
ntfs-3g iproute2 libpcap-dev
- name: Prepare minimega
uses: sandialabs/firewheel_ci/.github/actions/prepare-minimega@v1
- name: Prepare discovery
uses: sandialabs/firewheel_ci/.github/actions/prepare-discovery@v1
- name: Prepare FIREWHEEL
uses: sandialabs/firewheel_ci/.github/actions/prepare-firewheel@v1
with:
install-mode: "source"
- name: Run unit tests
run: |
firewheel test unit -m 'not long and not mcs' \
--cov --cov-report=term --cov-fail-under=60