Skip to content

simplify numpy build pin (numpy 2.1 released) #79

simplify numpy build pin (numpy 2.1 released)

simplify numpy build pin (numpy 2.1 released) #79

Workflow file for this run

# Build documentation
# See https://github.com/actions/starter-workflows/blob/main/pages/static.yml for starter
# https://github.com/actions/starter-workflows/tree/main/pages
#
# Currently hosted at https://py.contrails.org
name: Docs
# only build docs on release tags
on:
push:
tags:
- '*'
# Allows run manually from the Actions tab
workflow_dispatch:
# Global variables
env:
PYCONTRAILS_CACHE_DIR: '${{ github.workspace }}/.cache/pycontrails'
# disable all permissions at the top level
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
permissions: {}
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: OS Dependencies
run: sudo apt-get install -y pandoc
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: pyproject.toml
- name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GCP_SERVICE_ACCOUNT }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
- name: Install pycontrails (dev)
run: make dev-install
- name: Install pycontrails-bada extension
run: |
mkdir -p ~/.ssh/ && ssh-keyscan github.com > ~/.ssh/known_hosts
gcloud secrets versions access latest --secret="contrails-301217-github-ssh-key" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
pip install "pycontrails-bada @ git+ssh://[email protected]/contrailcirrus/pycontrails-bada.git"
# TODO: Execute notebooks for docs
# - name: Execute notebooks
# run: |
# make nb-execute
- name: Build docs
run: |
make docs-build
ls -la docs/_build/html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'docs/_build/html/'
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4