Skip to content

Support conda package files and Python 3.12 on MacOs #325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions .github/workflows/public-analyze-code-graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
6 changes: 4 additions & 2 deletions jupyter/environment.yml
Original file line number Diff line number Diff line change
@@ -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.*
Expand Down
Loading