Skip to content
Open
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
36 changes: 31 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
echo 'skipenv=.*-upstream$' >> $GITHUB_OUTPUT
;;
esac
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down Expand Up @@ -60,12 +60,12 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: 3.x

- name: Checkout sssd-test-framework repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
# Fetch the entire history of the repository and tags to determine
# correct framework version, as it is constructed from git describe
Expand All @@ -74,7 +74,7 @@ jobs:
path: sssd-test-framework

- name: Checkout sssd repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
repository: SSSD/sssd
path: sssd
Expand Down Expand Up @@ -179,11 +179,37 @@ jobs:

# Install system tests requirements
pip3 install -r ./requirements.txt
pip3 install flake8 pycodestyle isort mypy black

# Install yq to parse yaml files
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
sudo chmod a+x /usr/local/bin/yq

- name: flake8
if: always()
working-directory: ./sssd/src/tests/system
run: source .venv/bin/activate && flake8 .

- name: pycodestyle
if: always()
working-directory: ./sssd/src/tests/system
run: source .venv/bin/activate && pycodestyle .

- name: isort
if: always()
working-directory: ./sssd/src/tests/system
run: source .venv/bin/activate && isort --check-only .

- name: black
if: always()
working-directory: ./sssd/src/tests/system
run: source .venv/bin/activate && black --check --diff .

- name: mypy
if: always()
working-directory: ./sssd/src/tests/system
run: source .venv/bin/activate && mypy --install-types --non-interactive tests

- name: Install test framework
shell: bash
run: |
Expand Down
Loading