[pre-commit.ci] pre-commit autoupdate #222
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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: Set up Homebrew | |
if: runner.os == 'macOS' | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: Install enchant on macOS | |
if: runner.os == 'macOS' | |
run: | | |
brew update | |
brew install enchant | |
- name: Run tests with tox except linkcheck | |
if: runner.os != 'Linux' | |
run: tox -m docs | |
env: | |
TOX_SKIP_ENV: docs-test-linkcheck | |
- name: Run all tests with tox | |
if: runner.os == 'Linux' | |
run: tox -m docs |