From 955289c844df60ecd52fcc6a5bae309e632f57aa Mon Sep 17 00:00:00 2001 From: yzqzss Date: Wed, 7 Jun 2023 15:06:12 +0800 Subject: [PATCH] with poetry --- .github/workflows/python-package.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-package.yaml b/.github/workflows/python-package.yaml index da39140..b2e7615 100644 --- a/.github/workflows/python-package.yaml +++ b/.github/workflows/python-package.yaml @@ -28,7 +28,9 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install flake8 pytest poetry - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + # if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + poetry install + pip install -e . - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names @@ -37,9 +39,9 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: run biliarchiver tools run: | - bili_archive_bvids -h - bili_uploade -h - bili_get_bvids -h + python -m biliarchiver.bili_archive_bvids -h + python -m biliarchiver.bili_get_bvids -h + python -m biliarchiver.bili_upload -h # - name: Test with pytest # run: | # pytest \ No newline at end of file