Skip to content

Add github actions weekly schedule. #70

Add github actions weekly schedule.

Add github actions weekly schedule. #70

Workflow file for this run

name: Build and Deploy
on: [push]
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# Module requirements.
pip install .
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# Documentation requirements
sudo apt-get install pandoc
if [ -f docs/requirements.txt ]; then pip install -r docs/requirements.txt; fi
- name: Build documentation
run: |
sphinx-build docs _build
touch _build/.nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
clean: true
branch: gh-pages
folder: _build # The folder the action should deploy.