-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (49 loc) · 1.41 KB
/
python.yaml
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
60
61
62
63
name: Python
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install system dependencies
run: |
sudo apt-get update -y
# required to test the conversion module
sudo apt-get install -y ffmpeg
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r ipol_demo/modules/core/requirements.txt
- name: Test core
run: |
cd ipol_demo/modules/core
python -m pytest tests
style-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff~=0.0.0 isort~=5.0 black~=23.0
- name: ruff
if: success() || failure()
run: |
ruff . --show-source
- name: isort
if: success() || failure()
run: |
isort --check cp2 ipol_demo
- name: black
if: success() || failure()
run: |
black --check cp2 ipol_demo