-
Notifications
You must be signed in to change notification settings - Fork 30
43 lines (40 loc) · 1.09 KB
/
python-linux.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: Python on Linux
on:
pull_request:
push:
branches: [master]
schedule:
- cron: '35 8 * * 1'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.6", "3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
sudo apt-get install -y --no-install-recommends \
build-essential \
libffi-dev \
libfuzzy-dev
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox
# Run tox using the version of Python in `PATH`
run: BUILD_LIB=0 tox -vvv -e py
- name: Install sphinx to build docs
run: pip install sphinx mock
- name: Build html
run: |
cd docs/source && \
sphinx-build -W -b html . ../_build/html
- name: Build latex
run: |
cd docs/source && \
sphinx-build -W -b latex . ../_build/html