From 51b4943307dc4b4efb5d776022f56c55e4b1c182 Mon Sep 17 00:00:00 2001 From: Dev Singh Date: Thu, 1 Apr 2021 13:38:53 -0500 Subject: [PATCH] fix ut and file structure --- .../{ut-superscript.yml => superscript-unit.yml} | 8 ++------ {src => test}/test_superscript.py | 0 2 files changed, 2 insertions(+), 6 deletions(-) rename .github/workflows/{ut-superscript.yml => superscript-unit.yml} (76%) rename {src => test}/test_superscript.py (100%) diff --git a/.github/workflows/ut-superscript.yml b/.github/workflows/superscript-unit.yml similarity index 76% rename from .github/workflows/ut-superscript.yml rename to .github/workflows/superscript-unit.yml index fcd2b69..3a4e4c5 100644 --- a/.github/workflows/ut-superscript.yml +++ b/.github/workflows/superscript-unit.yml @@ -17,8 +17,6 @@ jobs: matrix: python-version: [3.7, 3.8] - env: - working-directory: ./data-analysis/ steps: - uses: actions/checkout@v2 @@ -30,9 +28,7 @@ jobs: run: | python -m pip install --upgrade pip pip install pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - working-directory: ${{ env.working-directory }} + if [ -f src/requirements.txt ]; then pip install -r src/requirements.txt; fi - name: Test with pytest run: | - pytest - working-directory: ${{ env.working-directory }} + pytest test/ diff --git a/src/test_superscript.py b/test/test_superscript.py similarity index 100% rename from src/test_superscript.py rename to test/test_superscript.py