Skip to content

Commit e3daa8f

Browse files
authored
Merge branch 'main' into settings-checker
2 parents 866a114 + 2e5f732 commit e3daa8f

File tree

94 files changed

+11906
-6519
lines changed

Some content is hidden

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

94 files changed

+11906
-6519
lines changed

.github/workflows/branch-docs.yml

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
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

Comments
 (0)