-
Notifications
You must be signed in to change notification settings - Fork 195
41 lines (33 loc) · 870 Bytes
/
Copy pathtests.yml
File metadata and controls
41 lines (33 loc) · 870 Bytes
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
name: Run Tests Directory
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
permissions:
contents: read
strategy:
matrix:
os: [ubuntu-24.04]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get build-dep .
- name: Build .deb package
run: |
dpkg-buildpackage -us -uc -b
- name: Install .deb package with dependencies
run: |
sudo apt-get install -y -f ../variety_*.deb
- name: Install pylint for tests
run: |
sudo apt-get install -y pylint || true
- name: Run all tests
run: |
python3 -m unittest discover -s tests -p "[Tt]est*.py" -v
env:
SKIP_DOWNLOADER_TESTS: "1"