diff --git a/.github/workflows/public-analyze-code-graph.yml b/.github/workflows/public-analyze-code-graph.yml index a9ca07086..463d578c8 100644 --- a/.github/workflows/public-analyze-code-graph.yml +++ b/.github/workflows/public-analyze-code-graph.yml @@ -96,17 +96,6 @@ jobs: java-version: ${{ matrix.java }} # "Setup Python" can be skipped if jupyter notebook analysis-results aren't needed - - name: (Python Setup) Setup Cache for Conda package manager Miniforge - uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4 - env: - # Increase this value to reset cache if etc/example-environment.yml has not changed - # Reference: https://github.com/conda-incubator/setup-miniconda#caching - CACHE_NUMBER: 0 - with: - path: ~/conda_pkgs_dir - key: - ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-environments-${{hashFiles('**/environment.yml', '.github/workflows/*.yml') }} - - name: (Python Setup) Use version ${{ matrix.python }} with Conda package manager Miniforge uses: conda-incubator/setup-miniconda@505e6394dae86d6a5c7fbb6e3fb8938e3e863830 # v3 with: @@ -115,10 +104,14 @@ jobs: activate-environment: codegraph environment-file: ./jupyter/environment.yml auto-activate-base: false - use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! + show-channel-urls: true - name: (Python Setup) Conda environment info shell: bash -el {0} - run: conda info + run: | + conda info + conda list + conda config --show-sources + conda config --show - name: (Code Analysis Setup) Setup Cache Analysis Downloads uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4 diff --git a/jupyter/environment.yml b/jupyter/environment.yml index dfc0bf521..cf6bcdd76 100644 --- a/jupyter/environment.yml +++ b/jupyter/environment.yml @@ -1,12 +1,14 @@ name: codegraph channels: + - conda-forge/label/python_rc # Needed on Mac since Python >= 3.12 - conda-forge dependencies: - python=3.12.* + - _python_rc=* # Needed on Mac since Python >= 3.12 - jupyter=1.1.* - matplotlib=3.10.* - - nbconvert=7.2.* - - nbconvert-webpdf=7.2.* + - nbconvert=7.16.* + - nbconvert-webpdf=7.16.* - numpy=1.26.* - pandas=2.2.* - pip=25.0.*