Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Fix and migrate the testsuite part to Testing Farm #455

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
39 changes: 18 additions & 21 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,33 @@ jobs:
matrix:
compiler: [gcc, clang]
python-ruby-version:
- {python: '3.12', ruby: '3.3'}
- {python: '3.12', ruby: '3.3', other: 'test-flags-override'}
- {python: '3.12', ruby: '3.3', other: 'test-debug'}
- {python: '3.12', ruby: '3.3', other: 'linker-bfd'}
- {python: '3.12', ruby: '3.3', other: 'linker-gold'}
- {python: '3.13', ruby: '3.3'}
- {python: '3.13', ruby: '3.3', other: 'test-flags-override'}
- {python: '3.13', ruby: '3.3', other: 'test-debug'}
- {python: '3.13', ruby: '3.3', other: 'linker-bfd'}
- {python: '3.13', ruby: '3.3', other: 'linker-gold'}
# Test several Python versions with the latest Ruby version
- {python: '3.12', ruby: '3.3'}
- {python: '3.11', ruby: '3.3'}
- {python: '3.10', ruby: '3.3'}
- {python: '3.9', ruby: '3.3'}
- {python: '3.8', ruby: '3.3'}
- {python: '3.7', ruby: '3.3'}
- {python: 'pypy3.7', ruby: '3.3'}
# Test several Ruby versions with the latest Python version
- {python: '3.12', ruby: '3.2'}
- {python: '3.12', ruby: '3.1'}
- {python: '3.12', ruby: '3.0'}
- {python: '3.12', ruby: '2.7'}
- {python: '3.12', ruby: '2.6'}
- {python: '3.12', ruby: '2.5'}
- {python: '3.13', ruby: '3.2'}
- {python: '3.13', ruby: '3.1'}
- {python: '3.13', ruby: '3.0'}
- {python: '3.13', ruby: '2.7'}
- {python: '3.13', ruby: '2.6'}
- {python: '3.13', ruby: '2.5'}
exclude:
- compiler: clang
python-ruby-version: {python: '3.12', ruby: '3.3', other: 'linker-bfd'}
python-ruby-version: {python: '3.13', ruby: '3.3', other: 'linker-bfd'}
- compiler: clang
python-ruby-version: {python: '3.12', ruby: '3.3', other: 'linker-gold'}
python-ruby-version: {python: '3.13', ruby: '3.3', other: 'linker-gold'}
include:
- compiler: gcc
python-ruby-version: {python: '3.12', ruby: '3.3', other: 'sanitizers'}
python-ruby-version: {python: '3.13', ruby: '3.3', other: 'sanitizers'}

steps:
- uses: actions/checkout@v4
Expand All @@ -61,6 +61,7 @@ jobs:
gawk \
gettext \
libaudit-dev \
libbz2-dev \
libcap-dev \
libcap-ng-dev \
libcunit1-dev \
Expand All @@ -70,11 +71,7 @@ jobs:
swig \
xmlto

pip install flake8

- name: Install Python setuptools
if: matrix.python-ruby-version.python == '3.12'
run: pip install setuptools
pip install flake8 setuptools

- name: Install Clang
if: ${{ matrix.compiler == 'clang' }}
Expand Down Expand Up @@ -126,7 +123,7 @@ jobs:
PYTHON_SYS_PREFIX="$(python -c 'import sys;print(sys.prefix)')"
echo "PKG_CONFIG_PATH=${PYTHON_SYS_PREFIX}/lib/pkgconfig" >> $GITHUB_ENV

if [[ "${{ matrix.python-ruby-version.python }}" = pypy* ]] ; then
if [[ "${{ matrix.python-ruby-version.python }}" == pypy* ]] ; then
# PyPy does not provide a config file for pkg-config
# libpypy-c.so is provided in bin/libpypy-c.so for PyPy and bin/libpypy3-c.so for PyPy3
echo "PYINC=-I${PYTHON_SYS_PREFIX}/include" >> $GITHUB_ENV
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/tf_testsuite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Run SELinux testsuite in Testing Farm

on: [push, pull_request]

jobs:
tf_testsuite:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [x86_64, aarch64]
steps:
- name: Schedule test on Testing Farm
uses: sclorg/testing-farm-as-github-action@main
with:
api_key: ${{ secrets.TESTING_FARM_API_TOKEN }}
arch: ${{ matrix.arch }}
22 changes: 0 additions & 22 deletions .github/workflows/vm_testsuite.yml

This file was deleted.

1 change: 0 additions & 1 deletion scripts/ci/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions scripts/ci/LICENSE

This file was deleted.

8 changes: 0 additions & 8 deletions scripts/ci/README.md

This file was deleted.

48 changes: 0 additions & 48 deletions scripts/ci/Vagrantfile

This file was deleted.

100 changes: 0 additions & 100 deletions scripts/ci/fedora-test-runner.sh

This file was deleted.

Loading
Loading