Skip to content

Commit 5439c10

Browse files
committed
Implement suggestions from Claude
1 parent b53fadf commit 5439c10

File tree

2 files changed

+33
-26
lines changed

2 files changed

+33
-26
lines changed

.github/workflows/build_workflow.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
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
@@ -36,7 +36,7 @@ jobs:
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}
@@ -47,7 +47,7 @@ jobs:
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: |
@@ -87,7 +94,7 @@ jobs:
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

conda/dev.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,27 @@ channels:
44
dependencies:
55
# Base
66
# =================
7-
- pip=22.2.2
7+
- pip
88
- python >=3.11,<3.14
99
- sqlite
10-
- six=1.16.0
11-
- globus-sdk=3.15.0
10+
- six >=1.16.0
11+
- globus-sdk >=3.15.0
1212
# Developer Tools
1313
# =================
1414
# If versions are updated, also update 'rev' in `.pre-commit.config.yaml`
15-
- black=24.10.0
16-
- flake8=7.1.1
17-
- flake8-isort=6.1.1
18-
- mypy=1.11.2
19-
- pre-commit=4.0.1
20-
- tbump=6.9.0
15+
- black >=24.0.0
16+
- flake8 >=7.0.0
17+
- flake8-isort >=6.0.0
18+
- mypy >=1.11.0
19+
- pre-commit >=4.0.0
20+
- tbump >=6.9.0
2121
# Documentation
2222
# =================
2323
# If versions are updated, also update in `.github/workflows/workflow.yml`
24-
- jinja2<3.1
25-
- sphinx=5.2.3
26-
- sphinx-multiversion=0.2.4
27-
- sphinx_rtd_theme=1.0.0
24+
- jinja2 <3.1
25+
- sphinx >=5.2.0
26+
- sphinx-multiversion >=0.2.4
27+
- sphinx_rtd_theme >=1.0.0
2828
# Need to pin docutils because 0.17 has a bug with unordered lists
2929
# https://github.com/readthedocs/sphinx_rtd_theme/issues/1115
30-
- docutils=0.16
31-
prefix: /opt/miniconda3/envs/zstash_dev
30+
- docutils >=0.16,<0.17

0 commit comments

Comments
 (0)