Skip to content

Commit c0305bd

Browse files
authored
Merge pull request #800 from ActivitySim/develop
(pre) release for 1.3
2 parents a8e755f + 5799535 commit c0305bd

File tree

719 files changed

+199037
-73784
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

719 files changed

+199037
-73784
lines changed

.github/workflows/branch-docs.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
name: ActivitySim Branch Docs
22
# This workflow is provided as a service for forks to build branch-specific documentation.
33

4-
on: push
4+
on:
5+
- push
6+
- workflow_dispatch
57

68
jobs:
79
docbuild:
810
if: "contains(github.event.head_commit.message, '[makedocs]') && (github.repository_owner != 'ActivitySim') && (github.ref_name != 'develop')"
911
# develop branch docs are built at the end of the core test workflow, regardless of repository owner or commit message flags
10-
name: ubuntu-latest py3.9
12+
name: ubuntu-latest py3.10
1113
runs-on: ubuntu-latest
1214
defaults:
1315
run:
@@ -16,36 +18,49 @@ jobs:
1618
- uses: actions/checkout@v3
1719
with:
1820
fetch-depth: 0 # get all tags, lets setuptools_scm do its thing
19-
- name: Set up Python 3.9
20-
uses: actions/setup-python@v2
21-
with:
22-
python-version: 3.9
23-
- name: Install dependencies
21+
22+
- name: Setup Mambaforge
2423
uses: conda-incubator/setup-miniconda@v2
2524
with:
2625
miniforge-variant: Mambaforge
2726
miniforge-version: latest
2827
use-mamba: true
29-
environment-file: conda-environments/docbuild.yml
30-
python-version: 3.9
28+
python-version: "3.10"
3129
activate-environment: docbuild
3230
auto-activate-base: false
3331
auto-update-conda: false
32+
33+
- name: Set cache date for year and month
34+
run: echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV
35+
36+
- uses: actions/cache@v3
37+
with:
38+
path: /usr/share/miniconda3/envs/docbuild
39+
key: linux-64-conda-${{ hashFiles('conda-environments/docbuild.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }}
40+
id: cache
41+
42+
- name: Update environment
43+
run: mamba env update --verbose -n docbuild -f conda-environments/docbuild.yml
44+
if: steps.cache.outputs.cache-hit != 'true'
45+
3446
- name: Install activitysim
3547
run: |
3648
python -m pip install .
49+
3750
- name: Conda checkup
3851
run: |
3952
conda info -a
4053
conda list
4154
echo REPOSITORY ${{ github.repository }}
4255
echo REF ${{ github.ref }}
4356
echo REF_NAME ${{ github.ref_name }}
57+
4458
- name: Build the docs
4559
run: |
4660
cd docs
4761
make clean
4862
make html
63+
4964
- name: Push to GitHub Pages
5065
uses: peaceiris/[email protected]
5166
with:

0 commit comments

Comments
 (0)