Skip to content
Merged
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
13 changes: 7 additions & 6 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Lint
on: [push, pull_request]

jobs:
build:
pylint:
runs-on: ubuntu-latest
container:
image: ${{ matrix.container-image }}
Expand All @@ -16,12 +16,13 @@ jobs:
fetch-depth: 0
- name: Install Python
run: |
dnf install -y python3 python3-pip findutils
dnf install -y python3 findutils
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
pip3 install -r test_requirements.txt
python3 -m venv "$RUNNER_TEMP/venv"
"$RUNNER_TEMP/venv/bin/pip" install --upgrade pip
"$RUNNER_TEMP/venv/bin/pip" install -r requirements.txt
"$RUNNER_TEMP/venv/bin/pip" install -r test_requirements.txt
- name: Analysing any changed code with pylint
run: |
find . -type f -name '*.py' | xargs -r pylint --max-line-length=120
find . -type f -name '*.py' | xargs -r "$RUNNER_TEMP/venv/bin/pylint" --max-line-length=120
13 changes: 7 additions & 6 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Unit Tests
on: [push, pull_request]

jobs:
build:
pytest:
runs-on: ubuntu-latest
container:
image: ${{ matrix.container-image }}
Expand All @@ -16,12 +16,13 @@ jobs:
fetch-depth: 0
- name: Install Python
run: |
dnf install -y python3 python3-pip
dnf install -y python3
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
pip3 install -r test_requirements.txt
python3 -m venv "$RUNNER_TEMP/venv"
"$RUNNER_TEMP/venv/bin/pip" install --upgrade pip
"$RUNNER_TEMP/venv/bin/pip" install -r requirements.txt
"$RUNNER_TEMP/venv/bin/pip" install -r test_requirements.txt
- name: Running unit tests with pytest
run: |
cd aquilon/ && pytest -vv
cd aquilon/ && "$RUNNER_TEMP/venv/bin/pytest" -vv