Pillow/.github/workflows/docs.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.4 KiB
YAML
Raw Normal View History

2023-03-04 17:02:36 +03:00
name: Docs
on:
push:
2023-10-15 20:46:25 +03:00
branches:
- "**"
2023-03-04 17:02:36 +03:00
paths:
- ".github/workflows/docs.yml"
- "docs/**"
2024-02-20 23:21:10 +03:00
- "src/PIL/**"
2023-03-04 17:02:36 +03:00
pull_request:
paths:
- ".github/workflows/docs.yml"
- "docs/**"
2024-02-20 23:21:10 +03:00
- "src/PIL/**"
2023-03-04 17:02:36 +03:00
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
2023-03-15 15:17:42 +03:00
env:
FORCE_COLOR: 1
2023-03-04 17:02:36 +03:00
jobs:
build:
runs-on: ubuntu-latest
name: Docs
steps:
2023-09-05 00:04:29 +03:00
- uses: actions/checkout@v4
with:
persist-credentials: false
2023-03-04 17:02:36 +03:00
- name: Set up Python
2023-12-07 18:07:52 +03:00
uses: actions/setup-python@v5
2023-03-04 17:02:36 +03:00
with:
python-version: "3.x"
cache: pip
cache-dependency-path: |
".ci/*.sh"
"pyproject.toml"
2023-03-04 17:02:36 +03:00
- name: Build system information
run: python3 .github/workflows/system-info.py
2024-01-21 02:15:59 +03:00
- name: Cache libimagequant
uses: actions/cache@v4
id: cache-libimagequant
with:
path: ~/cache-libimagequant
key: ${{ runner.os }}-libimagequant-${{ hashFiles('depends/install_imagequant.sh') }}
2023-03-04 17:02:36 +03:00
- name: Install Linux dependencies
run: |
.ci/install.sh
env:
GHA_PYTHON_VERSION: "3.x"
2024-01-21 02:15:59 +03:00
GHA_LIBIMAGEQUANT_CACHE_HIT: ${{ steps.cache-libimagequant.outputs.cache-hit }}
2023-03-04 17:02:36 +03:00
- name: Build
run: |
.ci/build.sh
- name: Docs
run: |
make doccheck