Ignore arch specific cast warnings in tests (#7393) #243
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
on: | |
push: | |
branches: | |
- main | |
name: Build docs | |
permissions: | |
contents: read | |
jobs: | |
build: | |
permissions: | |
contents: write # for Git to git push | |
name: Build docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: | | |
sudo apt install optipng | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements/build.txt | |
python -m pip install -r requirements/default.txt | |
python -m pip install -r requirements/optional.txt | |
python -m pip install -r requirements/docs.txt | |
- name: Install package | |
run: | | |
python -m pip install -vv --no-build-isolation . | |
- name: Push docs | |
run: | | |
eval "$(ssh-agent -s)" | |
ssh-add - <<< "${DEPLOY_KEY}" | |
# See https://github.community/t/github-actions-bot-email-address/17204/5 | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions" | |
(cd doc && make html) | |
git clone --quiet --branch=gh-pages "${GH_REF}" doc_build | |
cd doc_build | |
git rm -r dev | |
cp -r ../doc/build/html dev | |
git add dev | |
git commit -m "Deployed to GitHub Pages" | |
git push --force --quiet "${GH_REF}" gh-pages | |
env: | |
GH_REF: git@github.com:scikit-image/docs.git | |
DEPLOY_KEY: ${{ secrets.DOC_DEPLOY_KEY_PRIVATE }} | |
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no" | |
- name: Store docs as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: docs | |
path: doc/build/html |