-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.03 KB
/
python-waf.yml
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
name: Waf Python Tests
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * *" # 3 AM CET
push:
pull_request:
jobs:
waf:
name: Waf
runs-on: [self-hosted, builder, docker]
container:
image: python:3.9.5
# We run the container with root privileges such that we can create and modify network namespaces.
options: --user 0:0 --privileged
volumes:
- /home/buildbot/.ssh:/root/.ssh
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure
run: python3 waf configure
- name: Build
run: python3 waf
- name: Test
run: python3 waf --run_tests
# Cancel previous in-progress when pushing: https://stackoverflow.com/a/72408109
concurrency:
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
# Cancel previous in-progress when pushing: https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true