10000 Add GitHub Actions to run the CI (#680) · python/devguide@206e583 · GitHub
[go: up one dir, main page]

Skip to content

Commit 206e583

Browse files
authored
Add GitHub Actions to run the CI (#680)
set continue-on-error true on the linkcheck step
1 parent 6127a2b commit 206e583

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: master
7+
8+
jobs:
9+
test:
10+
name: test w/ Python ${{ matrix.python-version }}
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
python-version: ["3.9"]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions/cache@v1
21+
with:
22+
path: ~/.cache/pip
23+
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
24+
restore-keys: |
25+
${{ runner.os }}-pip-
26+
- uses: actions/setup-python@v2
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
- name: Install Dependencies
30+
run: python3 -m pip install -U pip -r requirements.txt
31+
- name: Build Docs
32+
run: sphinx-build -n -W -q -b html -d _build/doctrees . _build/html
33+
- name: Link Check
34+
run: sphinx-build -b linkcheck -d _build/doctrees . _build/linkcheck
35+
continue-on-error: true

0 commit comments

Comments
 (0)
0