Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian König <ckoenig@posteo.de>2022-09-25 19:03:44 +0300
committerChristian König <ckoenig@posteo.de>2022-09-25 19:03:44 +0300
commitbf5fffaca776ee35d4d0c6ee4197b4faa81a7f9f (patch)
tree6c2741737ae18784b344b91dfb000ca7de99eeb9
parent17ec88d96f2eaddd4f1836d5e2aa660b70f38ffa (diff)
Better wording and test with colortest_infrastructure
Signed-off-by: Christian König <ckoenig@posteo.de>
-rw-r--r--.github/workflows/test.yml76
1 files changed, 34 insertions, 42 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index c0783538..543ccb0a 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -12,33 +12,28 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- -
- name: Checkout repository
- uses: actions/checkout@v3.0.2
- -
- name: Check scripts in repository are executable
- run: |
- IFS=$'\n';
- for f in $(find . -name '*.sh'); do if [[ ! -x $f ]]; then echo "$f is not executable" && FAIL=1; fi ;done
- unset IFS;
- # If FAIL is 1 then we fail.
- [[ $FAIL == 1 ]] && exit 1 || echo "Scripts are executable!"
- -
- name: Spell-Checking
- uses: codespell-project/actions-codespell@master
- with:
- ignore_words_file: .codespellignore
- -
- name: Get editorconfig-checker
- uses: editorconfig-checker/action-editorconfig-checker@main # tag v1.0.0 is really out of date
- -
- name: Run editorconfig-checker
- run: editorconfig-checker
- -
- name: Run black python code formatter
- uses: psf/black@stable
- with:
- src: "./test"
+ - name: Checkout repository
+ uses: actions/checkout@v3.0.2
+ - name: Check scripts in repository are executable
+ run: |
+ IFS=$'\n';
+ for f in $(find . -name '*.sh'); do if [[ ! -x $f ]]; then echo "$f is not executable" && FAIL=1; fi ;done
+ unset IFS;
+ # If FAIL is 1 then we fail.
+ [[ $FAIL == 1 ]] && exit 1 || echo "Scripts are executable!"
+ - name: Spell-Checking
+ uses: codespell-project/actions-codespell@master
+ with:
+ ignore_words_file: .codespellignore
+ - name: Get editorconfig-checker
+ uses: editorconfig-checker/action-editorconfig-checker@main # tag v1.0.0 is really out of date
+ - name: Run editorconfig-checker
+ run: editorconfig-checker
+ - name: Check python code formatting with black
+ uses: psf/black@stable
+ with:
+ src: "./test"
+ options: "--check --diff --color"
distro-test:
if: github.event.pull_request.draft == false
@@ -47,21 +42,18 @@ jobs:
strategy:
fail-fast: false
matrix:
- distro: [debian_10, debian_11, ubuntu_20, ubuntu_22, centos_8, fedora_34]
+ distro:
+ [debian_10, debian_11, ubuntu_20, ubuntu_22, centos_8, fedora_34]
env:
DISTRO: ${{matrix.distro}}
steps:
- -
- name: Checkout repository
- uses: actions/checkout@v3.0.2
- -
- name: Set up Python 3.10
- uses: actions/setup-python@v4.2.0
- with:
- python-version: '3.10'
- -
- name: Install dependencies
- run: pip install -r test/requirements.txt
- -
- name: Test with tox
- run: tox -c test/tox.${DISTRO}.ini
+ - name: Checkout repository
+ uses: actions/checkout@v3.0.2
+ - name: Set up Python 3.10
+ uses: actions/setup-python@v4.2.0
+ with:
+ python-version: "3.10"
+ - name: Install dependencies
+ run: pip install -r test/requirements.txt
+ - name: Test with tox
+ run: tox -c test/tox.${DISTRO}.ini