From db3c6de2e61f721cd29f9be5a5e47e0d8fcba4a0 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Tue, 26 Mar 2024 09:13:51 +0800 Subject: [PATCH] Fix --- .github/workflows/check.yml | 4 ++-- .github/workflows/docs.yml | 4 ++-- .github/workflows/pypi-publish.yml | 7 ++----- .github/workflows/tests.yml | 4 ++-- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e5550d51..21ce8064 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -25,8 +25,8 @@ jobs: - name: Install dependencies run: | - pip install -r requirements.txt - pip install black blackdoc flake8 isort + python -m pip install -r requirements.txt + python -m pip install black blackdoc flake8 isort - name: Check code style run: make check diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index fd51968e..09c431a1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -28,8 +28,8 @@ jobs: - name: Install dependencies run: | - pip install -r requirements.txt - pip install sphinx sphinx-intl sphinx_rtd_theme + python -m pip install -r requirements.txt + python -m pip install build sphinx sphinx-intl sphinx_rtd_theme python -m build --sdist python -m install dist/* diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index ca65d66c..be32104b 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -21,12 +21,9 @@ jobs: with: python-version: '3.x' - - name: Install dependencies - run: | - pip install setuptools wheel - - - name: Build and publish + - name: Build run: | + python -m install build python -m build ls -lh dist/ diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d5784713..48f77749 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,8 +38,8 @@ jobs: - name: Install dependencies run: | - pip install -r requirements.txt - pip install pytest>=6.0 pytest-cov coverage[toml] codecov setuptools + python -m pip install -r requirements.txt + python -m pip install build pytest>=6.0 pytest-cov coverage[toml] codecov python -m build --sdist python -m pip install dist/*