Skip to content

Commit

Permalink
Test all compatible Python versions (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meakk authored Dec 30, 2024
1 parent 54b365b commit e1c1a13
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/actions/python-ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ inputs:
lfs_sha:
description: 'Cache LFS sha'
required: true
python_version:
description: 'Python version'
required: true

runs:
using: "composite"
Expand Down Expand Up @@ -43,7 +46,7 @@ runs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
python-version: ${{ inputs.python_version }}

- name: Install Python dependencies
shell: bash
Expand Down Expand Up @@ -99,7 +102,7 @@ runs:
uses: actions/upload-artifact@v4
with:
path: ./source/*.whl
name: ${{runner.os}}-wheel
name: ${{runner.os}}-${{inputs.python_version}}-wheel

- name: Install wheel
shell: bash
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,18 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
python_version: ['3.11']
include:
- os: ubuntu-latest
python_version: '3.9'
- os: ubuntu-latest
python_version: '3.10'
- os: ubuntu-latest
python_version: '3.11'
- os: ubuntu-latest
python_version: '3.12'
- os: ubuntu-latest
python_version: '3.13'

runs-on: ${{matrix.os}}
container: ${{ matrix.os == 'ubuntu-latest' && 'ghcr.io/f3d-app/f3d-ci' || null }}
Expand All @@ -251,6 +263,7 @@ jobs:
uses: ./source/.github/actions/python-ci
with:
lfs_sha: ${{ needs.cache_lfs.outputs.lfs_sha}}
python_version: ${{matrix.python_version}}

#----------------------------------------------------------------------------
# Coverage: Build and test on linux with last VTK with coverage option
Expand Down

0 comments on commit e1c1a13

Please sign in to comment.