Skip to content

Merge pull request #141 from sarakthon/python-compatibility #3

Merge pull request #141 from sarakthon/python-compatibility

Merge pull request #141 from sarakthon/python-compatibility #3

Workflow file for this run

name: Python tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test-legacy:
runs-on: ubuntu-24.04
permissions:
contents: read
strategy:
fail-fast: false
matrix:
python-version: ["3.5.10", "3.6.15", "3.7.10", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up legacy Python ${{ matrix.python-version }}
uses: ./.github/actions/set-up-legacy-python
with:
python-version: ${{ matrix.python-version }}
- name: Test cfengine_module_library is importable
run: python -c "import sys; sys.path.insert(0, 'libraries/python'); import cfengine_module_library; print('OK', sys.version)"