forked from scikit-image/scikit-image
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.42 KB
/
test-docs.yaml
File metadata and controls
52 lines (43 loc) · 1.42 KB
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
name: Test docs
on: [push, pull_request, merge_group]
concurrency:
# Cancel previous workflows of the same PR, but only for PRs
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
permissions:
contents: read
issues: write
jobs:
test_docs_aarch64:
name: macos-docs
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout scikit-image
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
allow-prereleases: true
cache: "pip"
cache-dependency-path: "requirements/*.txt"
- name: Build and install from source
run: |
pip install -v .
- name: Install doc dependencies
run: |
source .github/scripts/setup-docs-env.sh
- name: Build docs / run examples
run: |
SPHINXCACHE=${HOME}/.cache/sphinx SPHINXOPTS="-W -j auto" make -C doc html
- name: "Job has failed: reporting"
if: ${{ failure() && github.ref == 'refs/heads/main' }}
uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 # v2.9.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_TYPE: "docs build"
with:
filename: .github/MAIN_FAIL_TEMPLATE.md
update_existing: true