-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.12 KB
/
test-docs.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
---
name: Test documentation
env:
CI_FORCE_COLORS_POETRY: --ansi
CI_FORCE_COLORS_SPHINX: --color
on: # yamllint disable-line rule:truthy
workflow_dispatch:
push:
tags:
- "!*"
branches:
- main
- "test-me-*"
pull_request:
branches:
- "**"
jobs:
build:
name: Tests on ${{ matrix.os }} with default python
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Display Python version
run: python --version
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install tox
run: python -m pip install --upgrade tox
- name: Run tests with tox except linkcheck and spelling
if: runner.os != 'Linux'
run: tox -m docs
- name: Run all tests with tox
if: runner.os == 'Linux'
run: tox -m docs-full