Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ All build/test workflows cover Python 3.10-3.15 plus free-threaded 3.14t and 3.1

## Notes
- Workflow/job renames are breaking for downstream tooling
- Cache key includes `meta.yaml` hash for conda packages
- Conda jobs do not cache the conda package directory: the channel downloads were faster than restoring the ~1 GB `actions/cache` entries, which were also evicted before the next run
37 changes: 0 additions & 37 deletions .github/workflows/conda-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ on:
description: Conda platform subdir (e.g. linux-64, win-64, osx-64)
required: true
type: string
pkgs-dir:
description: Directory to cache conda packages in
required: true
type: string
channels-list:
description: Conda channels to build and test against
required: true
Expand Down Expand Up @@ -70,7 +66,6 @@ jobs:

env:
build-env-name: 'build'
CONDA_PKGS_DIRS: ${{ inputs.pkgs-dir }}

steps:
- name: Checkout repo
Expand All @@ -87,18 +82,6 @@ jobs:
channels: conda-forge
python-version: ${{ matrix.python }}

- name: Cache conda packages
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
env:
CACHE_NUMBER: 0 # Increase to reset cache
with:
path: ${{ inputs.pkgs-dir }}
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python_tag || matrix.python }}-${{hashFiles('**/meta.yaml') }}
restore-keys: |
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python_tag || matrix.python }}-
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-

- name: Install conda-build
run: conda install -n base -y conda-build

Expand Down Expand Up @@ -166,7 +149,6 @@ jobs:
test-env-name: 'test'
channel-path: './channel'
pkg-path-in-channel: './channel/${{ inputs.conda-subdir }}'
CONDA_PKGS_DIRS: ${{ inputs.pkgs-dir }}

steps:
- name: Download artifact
Expand Down Expand Up @@ -203,25 +185,6 @@ jobs:
echo "PACKAGE_VERSION=${PACKAGE_VERSION}"
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> "$GITHUB_ENV"

- name: Collect dependencies
run: |
conda install ${{ env.package-name }}=${{ env.PACKAGE_VERSION }} pytest "python=${{ matrix.python_spec || matrix.python }}" ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
cat lockfile
env:
CHANNELS: '-c ${{ env.channel-path }} ${{ inputs.channels-list }}'

- name: Cache conda packages
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
env:
CACHE_NUMBER: 0 # Increase to reset cache
with:
path: ${{ inputs.pkgs-dir }}
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python_tag || matrix.python }}-${{hashFiles('lockfile') }}
restore-keys: |
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python_tag || matrix.python }}-
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-

- name: Install mkl-service
run: |
conda install ${{ env.package-name }}=${{ env.PACKAGE_VERSION }} pytest "python=${{ matrix.python_spec || matrix.python }}" ${{ env.CHANNELS }}
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/conda-package-cf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
with:
runs-on: ubuntu-latest
conda-subdir: linux-64
pkgs-dir: /home/runner/conda_pkgs_dir
channels-list: -c conda-forge --override-channels
recipe-dir: conda-recipe-cf

Expand All @@ -30,7 +29,6 @@ jobs:
with:
runs-on: windows-latest
conda-subdir: win-64
pkgs-dir: D:\conda_pkgs_dir
channels-list: -c conda-forge --override-channels
recipe-dir: conda-recipe-cf

Expand All @@ -40,6 +38,5 @@ jobs:
with:
runs-on: macos-26-intel
conda-subdir: osx-64
pkgs-dir: /Users/runner/conda_pkgs_dir
channels-list: -c conda-forge --override-channels
recipe-dir: conda-recipe-cf
2 changes: 0 additions & 2 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
with:
runs-on: ubuntu-latest
conda-subdir: linux-64
pkgs-dir: /home/runner/conda_pkgs_dir
channels-list: -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels
recipe-dir: conda-recipe
build-wheels: true
Expand All @@ -31,7 +30,6 @@ jobs:
with:
runs-on: windows-latest
conda-subdir: win-64
pkgs-dir: D:\conda_pkgs_dir
channels-list: -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels
recipe-dir: conda-recipe
build-wheels: true
Loading