-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (52 loc) · 1.19 KB
/
python-waf.yml
File metadata and controls
52 lines (52 loc) · 1.19 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
name: Waf Python Tests
"on":
workflow_dispatch:
schedule:
- cron: 0 1 * * *
push:
branches:
- master
pull_request:
jobs:
waf:
name: Waf
runs-on:
- self-hosted
- vm
- ubuntu-current
strategy:
matrix:
container:
- python:3.11
- python:3.13
container:
image: "${{ matrix.container }}"
options: >-
--user 0:0
--privileged
--device /dev/net/tun
--cgroupns host
steps:
- name: Install dependencies
run: apt update && apt install -y sudo iproute2 iputils-ping stress
- name: Checkout
uses: actions/checkout@v4
- name: Configure
run: python3 waf configure
- name: Build
run: python3 waf
- name: Test
run: python3 waf --run_tests
- name: Run cleanup
if: failure()
run: ./bin/cleanup
workflow-keepalive:
if: github.event_name == 'schedule'
runs-on: [self-hosted, vm, ubuntu-current]
permissions:
actions: write
steps:
- uses: liskin/gh-workflow-keepalive@v1
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true