forked from python/devguide
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 911 Bytes
/
ci.yml
File metadata and controls
35 lines (30 loc) · 911 Bytes
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
name: Tests
on:
pull_request:
push:
branches: master
jobs:
test:
name: test w/ Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: python3 -m pip install -U pip -r requirements.txt
- name: Build Docs
run: sphinx-build -n -W -q -b html -d _build/doctrees . _build/html
- name: Link Check
run: sphinx-build -b linkcheck -d _build/doctrees . _build/linkcheck
continue-on-error: true