Skip to content

Bump jinja2 from 3.1.3 to 3.1.4 #167

Bump jinja2 from 3.1.3 to 3.1.4

Bump jinja2 from 3.1.3 to 3.1.4 #167

Workflow file for this run

name: Build & Publish Documentation
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up python
id: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
#version: 1.2.2
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Verify poetry installation
run: poetry --version
- name: Install amici dependencies
run: |
sudo apt update
sudo apt install -y swig
sudo apt install -y libblas-dev
sudo apt install -y libatlas-base-dev
sudo apt install -y libhdf5-dev
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install --no-interaction --with=dev --extras=sbml
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Build documentation
run: |
cd docs
poetry run make html
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: html-docs
path: docs/build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html