Skip to content

CI

CI #2689

Workflow file for this run

name: CI
on:
pull_request:
schedule:
- cron: '0 0 * * *' # Daily “At 00:00”
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-and-run:
name: Build Sphinx Docs (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "macos-13" ]
python-version: [ "3.9", "3.10", "3.11" ]
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set environment variables
run: |
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-name: geocat-examples
environment-file: conda_environment.yml
cache-environment: true
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{env.TODAY}}"
create-args: >-
python=${{matrix.python-version}}
- name: make html
uses: nick-fields/retry@v3
with:
timeout_minutes: 40
max_attempts: 3
command: |
eval "$(micromamba shell hook --shell bash)"
micromamba activate
micromamba activate geocat-examples
cd docs
conda info
conda list
make html