forked from PythonistaGuild/TwitchIO
-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (66 loc) · 1.65 KB
/
build.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Build
on:
push:
pull_request:
types: [opened, edited, synchronize]
jobs:
lib:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install CPython
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python-version}}
- name: Install Deps
run: |
python -m ensurepip
pip install wheel setuptools
pip install -r requirements.txt
- name: Build
run: python setup.py sdist bdist_wheel
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install CPython
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install Deps
run: |
sudo apt update
sudo apt install -y libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
python -m ensurepip
pip install -r docs/requirements.txt
pip install -r requirements.txt
- name: Build Docs
run: |
cd docs
make html
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: install black
run: |
python -m ensurepip
pip install black
- name: run linter
run: |
black twitchio --line-length 120 --verbose --check