From 6d55a80bf302ee5f37c23cb03805e3b7197daed7 Mon Sep 17 00:00:00 2001 From: Zhaopudark Date: Thu, 11 Jan 2024 20:23:08 +0800 Subject: [PATCH] Init v0.0.2 --- .github/workflows/build_and_deploy.yml | 10 ++++++++-- build/build_and_test.ps1 | 5 ----- 2 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 build/build_and_test.ps1 diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 587bf04..c6666b0 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -23,9 +23,15 @@ jobs: OSS_BUCKET_NAME: ${{ secrets.OSS_BUCKET_NAME }} OSS_ACCESS_KEY_ID: ${{ secrets.OSS_ACCESS_KEY_ID }} OSS_ACCESS_KEY_SECRET: ${{ secrets.OSS_ACCESS_KEY_SECRET }} - shell: pwsh run: | - . "./build/build_and_test.ps1" + wget https://github.com/jgm/pandoc/releases/download/3.1.11/pandoc-3.1.11-1-amd64.deb + sudo dpkg -i pandoc-3.1.11-1-amd64.deb + pandoc -v + pip install -r "./build/requirements.txt" + pip install -U setuptools build pytest twine + python -m build + pip install ./dist/*.whl + pytest ./tests # - run: twine upload dist/*.whl -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} # - name: Upload coverage reports to Codecov diff --git a/build/build_and_test.ps1 b/build/build_and_test.ps1 deleted file mode 100644 index ec9ea06..0000000 --- a/build/build_and_test.ps1 +++ /dev/null @@ -1,5 +0,0 @@ -pip install -r "${PSScriptRoot}/requirements.txt" -pip install -U setuptools build pytest twine -python -m build -pip install ./dist/*.whl -pytest \ No newline at end of file