Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: CI
2
3 on:
4 push:
5 branches: [ main, master ]
6 pull_request:
7 branches: [ main, master ]
8
9 jobs:
10 test:
11 runs-on: ubuntu-latest
12
13 steps:
14 - uses: actions/checkout@v5
15
16 - name: Install dependencies
17 run: |
18 sudo apt-get update
19 sudo apt-get install -y build-essential zlib1g-dev python3 locales
20
21 # tests fail due to number formatting if the default runner locale ('C') is used
22 - name: Set locale
23 run: |
24 sudo locale-gen en_US.UTF-8
25 sudo update-locale LANG=en_US.UTF-8
26
27 - name: Build project
28 run: make -j
29
30 - name: Test help menu and version
31 run: |
32 ./bin/filtlong --help > /dev/null
33 ./bin/filtlong --version > /dev/null
34
35 - name: Run tests
36 run: python3 -m unittest discover -s test -p "test_*.py"
37 env:
38 LANG: en_US.UTF-8
39 LC_ALL: en_US.UTF-8