Skip to content

[TEST] Add test workflow #4

[TEST] Add test workflow

[TEST] Add test workflow #4

Workflow file for this run

name: Test
on:
push:
branches:
- main-test
- v*-branch
pull_request:
branches:
- main-test
- v*-branch
workflow_call:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test (Python ${{ matrix.target.python }})
runs-on: ${{ matrix.target.builder }}
strategy:
fail-fast: false
matrix:
target:
# Python 3.6
- python: '3.6'
builder: ubuntu-20.04
# Python 3.7
- python: '3.7'
builder: ubuntu-20.04
# Python 3.8
- python: '3.8'
builder: ubuntu-20.04
# Python 3.9
- python: '3.9'
builder: ubuntu-20.04
# Python 3.10
- python: '3.10'
builder: ubuntu-20.04
# Python 3.11
- python: '3.11'
builder: ubuntu-22.04
# Python 3.12
- python: '3.12'
builder: ubuntu-22.04
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.target.python }}
- name: Check Python version
run: |
set -x
python --version
pip --version
python -c "import platform; print(platform.architecture())"
- name: Install Python dependencies
run: |
pip install --user setuptools wheel
- name: Check out Linux source code
uses: actions/checkout@v4
with:
repository: torvalds/linux
ref: v5.4
- name: Check out Kconfiglib source code
uses: actions/checkout@v4
with:
path: Kconfiglib
- name: Apply Linux Kconfig Makefile patch
run: |
git apply Kconfiglib/makefile.patch
- name: Run testsuite
run: |
python Kconfiglib/testsuite.py
# Kconfiglib/tests/reltest