Extend LEAPP with actor configuration #568
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Run unit tests in containers | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
scenarios: | |
- name: Run unit tests with python3.12 on el9 | |
python: python3.12 | |
container: ubi10 | |
- name: Run python linters with python3.12 on el9 | |
python: python3.12 | |
container: ubi10-lint | |
- name: Run unit tests with python3.9 on el9 | |
python: python3.9 | |
container: ubi9 | |
- name: Run python linters with python3.9 on el9 | |
python: python3.9 | |
container: ubi9-lint | |
- name: Run unit tests with python 3.6 on el8 | |
python: python3.6 | |
container: ubi8 | |
- name: Run python linters with python 3.6 on el8 | |
python: python3.6 | |
container: ubi8-lint | |
- name: Run unit tests with python2.7 on el7 | |
python: python2.7 | |
container: ubi7 | |
- name: Run python linters with python2.7 on el7 | |
python: python2.7 | |
container: ubi7-lint | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Set main to origin/main | |
if: github.ref != 'refs/heads/main' | |
run: | | |
git branch -f main origin/main | |
- name: ${{matrix.scenarios.name}} | |
run: script -e -c /bin/bash -c 'TERM=xterm podman build --security-opt=seccomp=unconfined -t leapp-tests -f res/container-tests/Containerfile.${{matrix.scenarios.container}} res/container-tests && PYTHON_VENV=${{matrix.scenarios.python}} REPOSITORIES=${{matrix.scenarios.repos}} podman run --security-opt=seccomp=unconfined --rm -ti -v ${PWD}:/payload --env=PYTHON_VENV --env=REPOSITORIES leapp-tests' |