From 91ae1c0df65e0dd50458757dfd111910fd5dc36a Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 18 May 2020 15:39:59 -0500 Subject: [PATCH] attempted fixes by excluding titanlearn Signed-off-by: Arthur Lu --- .github/workflows/ut-analysis.yml | 4 ++-- .github/workflows/ut-superscript.yml | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ut-analysis.yml b/.github/workflows/ut-analysis.yml index 29514413..e2092afa 100644 --- a/.github/workflows/ut-analysis.yml +++ b/.github/workflows/ut-analysis.yml @@ -35,9 +35,9 @@ jobs: - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=titanlearn.py # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=titanlearn.py working-directory: ${{ env.working-directory }} - name: Test with pytest run: | diff --git a/.github/workflows/ut-superscript.yml b/.github/workflows/ut-superscript.yml index 0991546d..8d215632 100644 --- a/.github/workflows/ut-superscript.yml +++ b/.github/workflows/ut-superscript.yml @@ -15,11 +15,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.5, 3.6, 3.7, 3.8] + python-version: [3.7, 3.8] - defaults: - run: - working-directory: /data-analysis/ + env: + working-directory: ./data-analysis/ steps: - uses: actions/checkout@v2 @@ -32,12 +31,15 @@ jobs: python -m pip install --upgrade pip pip install flake8 pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + working-directory: ${{ env.working-directory }} - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + working-directory: ${{ env.working-directory }} - name: Test with pytest run: | pytest unit-test.py + working-directory: ${{ env.working-directory }}