From fb2bd012dbbcad46bc89050712c1046725c55142 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 18 May 2020 15:25:19 -0500 Subject: [PATCH] attempt to fix working directory issue Signed-off-by: Arthur Lu --- .github/workflows/ut-analysis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ut-analysis.yml b/.github/workflows/ut-analysis.yml index 248da403..989adfb2 100644 --- a/.github/workflows/ut-analysis.yml +++ b/.github/workflows/ut-analysis.yml @@ -17,9 +17,8 @@ jobs: matrix: python-version: [3.5, 3.6, 3.7, 3.8] - defaults: - run: - working-directory: /analysis-master/ + env: + working-directory: ./analysis-master/ 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 \ No newline at end of file + pytest unit-test.py + working-directory: ${{ env.working-directory }} \ No newline at end of file