Skip to content

Commit

Permalink
Add 3.12 + repoerter with workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
damies13 committed Feb 16, 2024
1 parent c7a18ea commit a5d3ca1
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions .github/workflows/Regression_Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
fail-fast: false
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
fail-fast: false
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -49,7 +49,7 @@ jobs:
pyenv install ${{matrix.python}}
pyenv global ${{matrix.python}}
- name: setup-python
if: ${{ !startswith(matrix.platform, 'macos-') || contains('3.11', matrix.python) }}
if: ${{ !startswith(matrix.platform, 'macos-') || contains('3.11;3.12;', matrix.python) }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
Expand Down Expand Up @@ -144,11 +144,33 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.9', '3.10', '3.11']
python: ['3.9', '3.10', '3.11', '3.12']
fail-fast: false
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/setup-python@v4
- name: "Echo Vars"
run: |
echo matrix.os: ${{ matrix.os }}
echo matrix.platform: ${{ matrix.platform }}
echo matrix.python: ${{ matrix.python }}
echo matrix.python-version: ${{ matrix.python-version }}
- name: (MacOS, <3.11) Fix Python's tkinter Issue-649 (https://github.com/actions/setup-python/issues/649)
shell: bash
if: ${{ startswith(matrix.platform, 'macos-') && contains('3.7;3.8;3.9;3.10', matrix.python) }}
run: |
brew install tcl-tk pyenv openssl readline sqlite3 xz zlib
env \
PATH="$(brew --prefix tcl-tk)/bin:$PATH" \
LDFLAGS="-L$(brew --prefix tcl-tk)/lib" \
CPPFLAGS="-I$(brew --prefix tcl-tk)/include" \
PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
CFLAGS="-I$(brew --prefix tcl-tk)/include" \
PYTHON_CONFIGURE_OPTS="--with-tcltk-includes='-I$(brew --prefix tcl-tk)/include' --with-tcltk-libs='-L$(brew --prefix tcl-tk)/lib -ltcl8.6 -ltk8.6'" \
pyenv install ${{matrix.python}}
pyenv global ${{matrix.python}}
- name: setup-python
if: ${{ !startswith(matrix.platform, 'macos-') || contains('3.11;3.12;', matrix.python) }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Checkout
Expand Down

0 comments on commit a5d3ca1

Please sign in to comment.