2222 - name : Set up Python 3.13
2323 uses : actions/setup-python@v4
2424 with :
25- python-version : 3.13
25+ python-version : " 3.13"
2626
2727 # Run all pre-commit hooks on all the files.
2828 # Getting only staged files can be tricky in case a new PR is opened
3636 runs-on : ubuntu-latest
3737 strategy :
3838 matrix :
39- python-version : [3.11, 3.12, 3.13]
39+ python-version : [" 3.11", " 3.12", " 3.13" ]
4040 defaults :
4141 run :
4242 shell : bash -l {0}
4747 - name : Cache Conda
4848 uses : actions/cache@v3
4949 env :
50- CACHE_NUMBER : 0
50+ CACHE_NUMBER : 1 # Increment this to invalidate cache
5151 with :
5252 path : ~/conda_pkgs_dir
5353 key : ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
@@ -60,16 +60,23 @@ jobs:
6060 miniforge-variant : Miniforge3
6161 miniforge-version : latest
6262 environment-file : conda/dev.yml
63- channel-priority : strict
63+ channel-priority : flexible # Changed from strict to flexible
6464 auto-update-conda : true
6565 python-version : ${{ matrix.python-version }}
6666 channels : conda-forge
6767 use-only-tar-bz2 : true
6868
69- - name : Fix pip and setuptools for Python 3.12+
69+ - name : Verify Environment and Fix Dependencies
7070 run : |
71- python -m ensurepip --upgrade
72- python -m pip install --upgrade --force-reinstall pip setuptools wheel
71+ conda info
72+ conda list
73+ # Ensure we have the right Python version
74+ python --version
75+ # Fix pip issues for Python 3.12+
76+ if [[ "${{ matrix.python-version }}" == "3.12" ]] || [[ "${{ matrix.python-version }}" == "3.13" ]]; then
77+ python -m ensurepip --upgrade || true
78+ python -m pip install --upgrade --force-reinstall pip setuptools wheel
79+ fi
7380
7481 - name : Install `zstash` Package
7582 run : |
8794 defaults :
8895 run :
8996 shell : bash -l {0}
90- timeout-minutes : 5
97+ timeout-minutes : 10 # Increased timeout for docs
9198 steps :
9299 - uses : actions/checkout@v3
93100 with :
@@ -97,11 +104,11 @@ jobs:
97104 - name : Cache Conda
98105 uses : actions/cache@v3
99106 env :
100- CACHE_NUMBER : 0
107+ CACHE_NUMBER : 1 # Match the build job cache number
101108 with :
102109 path : ~/conda_pkgs_dir
103110 key : ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
104- hashFiles('conda/dev.yml') }}
111+ hashFiles('conda/dev.yml') }}-docs
105112
106113 - name : Build Conda Environment
107114 uses : conda-incubator/setup-miniconda@v3
@@ -110,8 +117,9 @@ jobs:
110117 miniforge-variant : Miniforge3
111118 miniforge-version : latest
112119 environment-file : conda/dev.yml
113- channel-priority : strict
120+ channel-priority : flexible # Changed from strict to flexible
114121 auto-update-conda : true
122+ python-version : " 3.11" # Use stable Python version for docs
115123
116124 # sphinx-multiversion allows for version docs.
117125 - name : Build Sphinx Docs
0 commit comments