Skip to content

Commit

Permalink
[TEST] Add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanosio committed Oct 3, 2024
1 parent 061e71f commit bc1b131
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
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-22.04
# Python 3.7
- python: '3.7'
builder: ubuntu-22.04
# Python 3.8
- python: '3.8'
builder: ubuntu-22.04
# Python 3.9
- python: '3.9'
builder: ubuntu-22.04
# Python 3.10
- python: '3.10'
builder: ubuntu-22.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

0 comments on commit bc1b131

Please sign in to comment.