77
88jobs :
99 docbuild :
10- if : " contains(github.event.head_commit.message, '[makedocs]') && (github.repository_owner != 'ActivitySim') && (github.ref_name != 'develop')"
10+ if : " github.event_name == 'workflow_dispatch' || ( contains(github.event.head_commit.message, '[makedocs]') && (github.repository_owner != 'ActivitySim') && (github.ref_name != 'develop') )"
1111 # develop branch docs are built at the end of the core test workflow, regardless of repository owner or commit message flags
1212 name : ubuntu-latest py3.10
1313 runs-on : ubuntu-latest
@@ -21,39 +21,21 @@ jobs:
2121 with :
2222 fetch-depth : 0 # get all tags, lets setuptools_scm do its thing
2323
24- - name : Setup Miniforge
25- uses : conda-incubator /setup-miniconda@v2
24+ - name : Install uv
25+ uses : astral-sh /setup-uv@v5
2626 with :
27- miniforge-version : latest
28- python-version : " 3.10"
29- activate-environment : docbuild
30- auto-activate-base : false
31- auto-update-conda : false
27+ version : " 0.7.12"
28+ enable-cache : true
29+ cache-dependency-glob : " uv.lock"
3230
33- - name : Set cache date for year and month
34- run : echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV
35-
36- - uses : actions/cache@v3
31+ - name : " Set up Python"
32+ uses : actions/setup-python@v5
3733 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 : conda env update --verbose -n docbuild -f conda-environments/docbuild.yml
44- if : steps.cache.outputs.cache-hit != 'true'
34+ python-version-file : " .python-version"
4535
4636 - name : Install activitysim
4737 run : |
48- python -m pip install .
49-
50- - name : Conda checkup
51- run : |
52- conda info -a
53- conda list
54- echo REPOSITORY ${{ github.repository }}
55- echo REF ${{ github.ref }}
56- echo REF_NAME ${{ github.ref_name }}
38+ uv sync --locked --dev
5739
5840 - name : Build the docs
5941 run : |
0 commit comments