-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (37 loc) · 964 Bytes
/
main.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
name: main
on:
push:
branches: [main]
pull_request:
jobs:
main:
env:
POETRY_VIRTUALENVS_IN_PROJECT: true
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- run: pip install poetry==1.1.7
- name: cache venv
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- run: poetry install
- name: static code analysis
run: |
poetry run black --check ipfs_video_kodi tests
poetry run mypy ipfs_video_kodi
- run: poetry run pytest
- name: build package
run: |
make clean
make package
- uses: actions/upload-artifact@v2
with:
name: package
path: build/plugin_video_ipfs.zip
retention-days: 3
if-no-files-found: error