Skip to content

Commit

Permalink
Merge branch 'aurora/2.4' of https://github.com/daos-stack/daos into …
Browse files Browse the repository at this point in the history
…aurora/2.4

Required-githooks: true

Signed-off-by: Maureen Jean <maureen.jean@intel.com>
  • Loading branch information
mjean308 committed Jan 18, 2024
2 parents 9be1a2a + ebf7ed0 commit 6172d80
Show file tree
Hide file tree
Showing 369 changed files with 3,211 additions and 1,457 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Linting

# Always run on Pull Requests as then these checks can be marked as required.
on:
push:
branches:
- master
- 'feature/*'
- 'release/*'
pull_request:

jobs:
# Run isort on the tree.
# This checks .py files only so misses SConstruct and SConscript files are not checked, rather
# for these files check them afterwards. The output-filter will not be installed for this part
# so regressions will be detected but not annotated.
isort:
name: Python isort
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-python@v3
- uses: isort/isort-action@master
with:
requirementsFiles: "requirements.txt utils/cq/requirements.txt"
- name: Run on SConstruct file.
run: isort --check-only SConstruct
- name: Run on build files.
run: find . -name SConscript | xargs isort --check-only

log-check:
name: Logging macro checking
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Check DAOS logging macro use.
run: ./utils/cq/d_logging_check.py --github src
2 changes: 2 additions & 0 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install extra python packages
run: pip install --requirement utils/cq/requirements.txt
- name: Run check
uses: codespell-project/actions-codespell@master
with:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/version-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Version checking

on:
push:
branches:
- master

jobs:
upgrade-check:
name: Check for updates
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
package: [pylint, yamllint, isort, codespell]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install extra python packages
run: python3 -m pip install --requirement utils/cq/requirements.txt
- name: Check ${{ matrix.package }} version
run: python -m ${{ matrix.package }} --version | tee -a version-pre
- name: Upgrade
run: pip install --upgrade ${{ matrix.package }}
- name: Check ${{ matrix.package }} for version
run: python -m ${{ matrix.package }} --version | diff version-pre -
3 changes: 3 additions & 0 deletions .github/workflows/yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
paths:
- '**/*.yaml'
- '**/*.yml'
- utils/cq/requirements.txt

jobs:
yaml-lint:
Expand All @@ -25,5 +26,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3'
- name: Install extra python packages
run: pip install --requirement utils/cq/requirements.txt
- name: Run check
run: yamllint --format github .
Loading

0 comments on commit 6172d80

Please sign in to comment.