Skip to content

Commit

Permalink
adding strategy for python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ye11owSub committed Feb 22, 2025
1 parent 9024fb9 commit 5a67203
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ jobs:

runs-on: ubuntu-22.04

strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/[email protected]

Expand Down Expand Up @@ -34,20 +38,28 @@ jobs:
cp -R mmtf-cpp/include/mmtf* include/
- name: Build
with:
python-version: ${{ matrix.python-version }}
run: |
pip install --upgrade pip
pip install -v --config-settings testing=True '.[dev]'
env:
DEBUG: 1

- name: Test
with:
python-version: ${{ matrix.python-version }}
run: |
pymol -ckqy testing/testing.py --run all
build-Windows:

runs-on: windows-latest

strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

env:
CONDA_ROOT: ${{github.workspace}}\..\tmp\miniforge
MINIFORGE_EXEC: ${{github.workspace}}\..\tmp\miniforge.exe
Expand Down Expand Up @@ -83,11 +95,15 @@ jobs:
- name: Build PyMOL
shell: cmd
with:
python-version: ${{ matrix.python-version }}
run: |
CALL %CONDA_ROOT%\\Scripts\\activate.bat
pip install -v --config-settings testing=True .[dev]
- name: Test
with:
python-version: ${{ matrix.python-version }}
shell: cmd
run: |
CALL %CONDA_ROOT%\\Scripts\\activate.bat
Expand All @@ -97,6 +113,10 @@ jobs:

runs-on: macos-latest

strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

env:
CONDA_ROOT: "/tmp/miniforge"

Expand All @@ -119,12 +139,16 @@ jobs:
cp -R msgpack-c/include/msgpack* ${CONDA_ROOT}/include/
- name: Build PyMOL
with:
python-version: ${{ matrix.python-version }}
run: |-
export MACOSX_DEPLOYMENT_TARGET=12.0
export PATH="$CONDA_ROOT/bin:$PATH"
pip install -v --config-settings testing=True '.[dev]'
- name: Test
with:
python-version: ${{ matrix.python-version }}
run: |-
export PATH="$CONDA_ROOT/bin:$PATH"
pymol -ckqy testing/testing.py --run all

0 comments on commit 5a67203

Please sign in to comment.