Fix vulture usage and add vulture to Build-Depends
[grml2usb.git] / .github / workflows / check-full.yml
1 name: Code Testing
2
3 on:
4   push:
5   pull_request:
6   schedule:
7     - cron: '42 1 * * *'
8
9 jobs:
10   codecheck:
11     runs-on: ubuntu-latest
12     name: Run codecheck
13
14     steps:
15       - name: Checkout source
16         uses: actions/checkout@v2
17
18       - name: Install virtualenv + python3-setuptools
19         run: sudo apt-get install virtualenv python3-setuptools
20
21       - name: Set up Python virtualenv environment
22         run: virtualenv -p /usr/bin/python3 venv3
23
24       - name: Activate Python virtualenv environment
25         run: . ./venv3/bin/activate
26
27       - name: pip install wheel (to make install black work)
28         run: pip3 install wheel
29
30       - name: pip install flake8, isort + black, vulture
31         run: pip3 install flake8 isort black vulture
32
33       - name: Codecheck execution
34         run: make codecheck
35
36   unittests:
37     runs-on: ubuntu-latest
38     name: Run unit tests
39
40     steps:
41       - name: Checkout source
42         uses: actions/checkout@v2
43
44       - name: Install virtualenv + python3-setuptools
45         run: sudo apt-get install virtualenv python3-setuptools
46
47       - name: Set up Python virtualenv environment
48         run: virtualenv -p /usr/bin/python3 venv3
49
50       - name: Activate Python virtualenv environment
51         run: . ./venv3/bin/activate
52
53       - name: Install pytest
54         run: pip3 install pytest
55
56       - name: Run Pytest
57         run: pytest