-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (41 loc) · 1.11 KB
/
ci.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
name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
validate:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10.11"
- name: Install system packages (Ubuntu)
run: |
sudo apt-get update -y
sudo apt-get install -y libsdl2-2.0-0 vlc
if: matrix.os == 'ubuntu-latest'
- name: Install system packages (MacOS)
run: |
brew update
brew install --cask vlc
if: matrix.os == 'macos-latest'
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -r dev_requirements.txt
- name: Lint
run: pylint $(git ls-files '*.py')
- name: Test
run: coverage run -m unittest discover -s source/tests/ -t source/tests/
- name: Coverage
run: coverage report -m --fail-under=100