From df9ebc02e40f5c6e0e1d3afee739732140a7997a Mon Sep 17 00:00:00 2001 From: EstrellaXD Date: Tue, 14 Mar 2023 23:18:23 +0800 Subject: [PATCH] Fix pytest --- .github/workflows/unittest.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index c8380698..d5c6dc46 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -21,15 +21,13 @@ jobs: uses: actions/setup-python@v3 with: python-version: "3.11" - - - name: Enter directory - run: | - cd src - name: Install dependencies + working-directory: ./src run: | python -m pip install --upgrade pip if [ -f requirements.txt ]; then pip install -r requirements.txt; fi pip install pytest - name: Test + working-directory: ./src run: | - pytest ./test/test_raw_parser.py \ No newline at end of file + pytest test/test_raw_parser.py \ No newline at end of file