Skip to content

Commit

Permalink
CI(super-linter): Specify linter rules path to pick up configuration …
Browse files Browse the repository at this point in the history
…files (OSGeo#3915)
  • Loading branch information
echoix authored Jun 25, 2024
1 parent 5d25c53 commit 3ef6e61
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,17 @@ jobs:
run: |
export PYTHONPATH=`grass --config python_path`:$PYTHONPATH
export LD_LIBRARY_PATH=$(grass --config path)/lib:$LD_LIBRARY_PATH
pytest --verbose --color=yes --durations=0 --durations-min=0.5 --numprocesses auto -ra . -m 'not needs_solo_run'
pytest --verbose --color=yes --durations=0 --durations-min=0.5 \
--numprocesses auto -ra . \
-m 'not needs_solo_run'
- name: Run pytest with a single worker (for tests marked with needs_solo_run)
run: |
export PYTHONPATH=`grass --config python_path`:$PYTHONPATH
export LD_LIBRARY_PATH=$(grass --config path)/lib:$LD_LIBRARY_PATH
pytest --verbose --color=yes --durations=0 --durations-min=0.5 -ra . -m 'needs_solo_run'
pytest --verbose --color=yes --durations=0 --durations-min=0.5 \
-ra . \
-m 'needs_solo_run'
- name: Print installed versions
if: always()
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
DEFAULT_BRANCH: main
# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# By default, super-linter expect all linters to have their config
# files inside .github/linters.
# Setting it to the root of the repo for easier configuration here.
LINTER_RULES_PATH: .
# Listed but commented out linters would be nice to have.
# (see https://github.com/github/super-linter#environment-variables)
#
Expand All @@ -52,3 +56,5 @@ jobs:
VALIDATE_POWERSHELL: true
# VALIDATE_XML: true
VALIDATE_YAML: true
MARKDOWN_CONFIG_FILE: .markdownlint.yml
YAML_CONFIG_FILE: .yamllint
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ cache: ccache
# safelist
branches:
only:
- main
- releasebranch*
- main
- releasebranch*

jobs:
include:
Expand Down

0 comments on commit 3ef6e61

Please sign in to comment.