Skip to content

Commit

Permalink
adding Python 3.12 to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
daurer committed Mar 11, 2024
1 parent ab92257 commit 109e350
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,40 @@ jobs:
max-parallel: 10
fail-fast: false
matrix:
python-version: ['3.8','3.9','3.10', '3.11']
name: Testing with Python ${{ matrix.python-version }}
python-version: # There is a bug in conda 24.1.2 for Python < 3.12
- python: "3.8"
conda: "23.11.0"
- python: "3.9"
conda: "23.11.0"
- python: "3.10"
conda: "23.11.0"
- python: "3.11"
conda: "23.11.0"
- python: "3.12"
conda: "latest"
name: Testing with Python ${{ matrix.python-version.python }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.python-version.python }}
- 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
conda --version
- name: Change conda version
- name: Change conda version if necessary
if: ${{ matrix.python-version.conda }} != latest
run: |
# There is a bug in the most recent version (24.1.2)
conda install conda=23.11.0 python=3.11
conda install conda=${{ matrix.python-version.conda }} python=${{ matrix.python-version.python }}
conda --version
- name: Install dependencies
run: |
# replace python version in core dependencies
sed -i 's/python/python=${{ matrix.python-version }}/' dependencies_core.yml
sed -i 's/python/python=${{ matrix.python-version.python }}/' dependencies_core.yml
conda env update --file dependencies_core.yml --name base
conda list
- name: Prepare ptypy
Expand Down

0 comments on commit 109e350

Please sign in to comment.