From 35a771ac994ed457d9493f6ac541781d06b39a22 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Sat, 8 Jul 2023 16:38:33 +0800 Subject: [PATCH] [cicd] update test workflows --- .github/workflows/pylint.yml | 1 + .github/workflows/test.yaml | 1 + .woodpecker/lint.yml | 1 + .woodpecker/test.yml | 1 + 4 files changed, 4 insertions(+) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 794d9bc..818ab4d 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -27,4 +27,5 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Analysing the code with pylint run: | + mv demo/config.py.simple demo/config.py pylint --disable=E0401 $(git ls-files '*.py') diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 61022ec..5067542 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -30,4 +30,5 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Test with pytest run: | + mv demo/config.py.simple demo/config.py pytest -vvv diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index 0507c32..dcfbbec 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -4,6 +4,7 @@ pipeline: commands: - poetry add pylint - poetry install + - mv demo/config.py.simple demo/config.py - find . -type f -name "*.py" | xargs poetry run pylint --disable=E0401 flake8: image: fnndsc/python-poetry diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index f98d60b..354facd 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -3,4 +3,5 @@ pipeline: image: fnndsc/python-poetry commands: - poetry install + - mv demo/config.py.simple demo/config.py - poetry run pytest -vvv