From 9b6cc51ed39b5bdbf9f71609fc90c29f707e6be9 Mon Sep 17 00:00:00 2001 From: Daisuke Oyama Date: Wed, 27 Nov 2024 16:11:13 +0900 Subject: [PATCH] CI: Install numba=0.61.0rc1, Test with Python 3.13 (#746) Use conda-incubator/setup-miniconda --- .github/workflows/ci_np2.yml | 16 +++++----------- environment_np2.yml | 3 ++- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci_np2.yml b/.github/workflows/ci_np2.yml index 3ec474c1..6c9fc4f0 100644 --- a/.github/workflows/ci_np2.yml +++ b/.github/workflows/ci_np2.yml @@ -13,24 +13,18 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v3 + - uses: conda-incubator/setup-miniconda@v3 with: - python-version: '3.12' - - name: Add conda to system path - run: | - # $CONDA is an environment variable pointing to the root of the miniconda directory - echo $CONDA/bin >> $GITHUB_PATH - - name: Install dependencies - run: | - conda install -c conda-forge libmamba - conda env update --file environment_np2.yml --name base + auto-update-conda: true + environment-file: environment_np2.yml + python-version: '3.13' - name: Conda info shell: bash -l {0} run: | conda info conda list - name: Test with pytest + shell: bash -l {0} run: | conda install pytest pytest diff --git a/environment_np2.yml b/environment_np2.yml index bcb48273..a111ed5f 100644 --- a/environment_np2.yml +++ b/environment_np2.yml @@ -2,12 +2,13 @@ name: qe channels: - conda-forge - defaults + - numba dependencies: - coverage - numpy>=2 - scipy - pandas - - numba + - numba=0.61.0rc1 - sympy - ipython - flake8