diff --git a/.github/workflows/tdgpt-ci.yml b/.github/workflows/tdgpt-ci.yml index 961734a419..02c1c5889f 100644 --- a/.github/workflows/tdgpt-ci.yml +++ b/.github/workflows/tdgpt-ci.yml @@ -10,6 +10,7 @@ on: jobs: build: runs-on: ubuntu-latest + working-directory: ${{ github.workspace }}/tools/tdgpt strategy: fail-fast: false matrix: @@ -25,19 +26,16 @@ jobs: cache: 'pip' - name: Install dependencies - working-directory: ${{ github.workspace }}/tools/tdgpt run: | python -m pip install --upgrade pip python -m pip install flake8 pytest pylint if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Checking the code with pylint - working-directory: ${{ github.workspace }}/tools/tdgpt run: | pylint $(git ls-files '*.py') --exit-zero - name: Checking the code with flake8 - working-directory: ${{ github.workspace }}/tools/tdgpt run: | # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics @@ -45,6 +43,5 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Run test cases with pytest - working-directory: ${{ github.workspace }}/tools/tdgpt run: | pytest