Skip to content

Commit c9be5ce

Browse files
committed
tests.yml: Refine build matrix.
Also add Python 3.14 testing. Signed-off-by: Chris PeBenito <pebenito@ieee.org>
1 parent c71d747 commit c9be5ce

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

.github/workflows/tests.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,32 @@ jobs:
2626
fail-fast: false
2727

2828
matrix:
29-
build-opts:
30-
- {python: '3.10', tox: python3}
31-
- {python: '3.11', tox: python3}
32-
- {python: '3.12', tox: python3}
33-
- {python: '3.13', tox: python3}
29+
# unit tests
30+
tox:
31+
- "python3"
32+
python:
33+
- "3.10"
34+
- "3.11"
35+
- "3.12"
36+
- "3.13"
37+
- "3.14"
38+
include:
39+
# static analysis
3440
- {python: '3.11', tox: pep8}
3541
- {python: '3.11', tox: lint}
3642
- {python: '3.11', tox: mypy}
3743
- {python: '3.11', tox: coverage}
44+
# install test
3845
- {python: '3.11', tox: install}
3946

4047
steps:
4148
- uses: actions/checkout@v3
4249

4350
# This should be the minimum required Python version to build refpolicy.
44-
- name: Set up Python ${{ matrix.build-opts.python }}
51+
- name: Set up Python ${{ matrix.python }}
4552
uses: actions/setup-python@v6
4653
with:
47-
python-version: ${{ matrix.build-opts.python }}
54+
python-version: ${{ matrix.python }}
4855

4956
- name: Install dependencies
5057
run: |
@@ -90,6 +97,6 @@ jobs:
9097
run: |
9198
# confirm python version
9299
python --version
93-
python -m tox -e ${{ matrix.build-opts.tox }}
100+
python -m tox -e ${{ matrix.tox }}
94101
env:
95102
LD_LIBRARY_PATH: "${{env.SEPOL_SRC}}/src:${{env.SELINUX_SRC}}/src:${LD_LIBRARY_PATH}"

0 commit comments

Comments
 (0)