-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (48 loc) · 1.2 KB
/
choke.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: choke
on:
workflow_dispatch:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
# schedule:
# - cron: '15 1 * * *'
jobs:
build:
runs-on: ${{ matrix.os }}
permissions:
contents: read
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Environment
run: |
bash -c set
- name: Backports
run: |
sudo apt-get -qq update
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y -s ppa:nerdboy/embedded
sudo apt-get install -y libjson-c-dev lcov
sudo apt-get install -y libhiredis-dev gcovr redis-server
sudo apt-get install -y valgrind libc6-dbg
- name: Stop redis-server system service
run: |
sudo systemctl stop redis
- name: Add python requirements
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Run tests with valgrind
run: |
tox -e grind
tox -e tests