From 5f9b1b184dee7bea89c67ab2f471330c43424209 Mon Sep 17 00:00:00 2001 From: zweien <278954153@qq.com> Date: Thu, 15 Jul 2021 12:39:42 +0800 Subject: [PATCH] ci: update pypi installation check --- .github/workflows/pypi.yml | 8 +++++--- .github/workflows/python-package.yml | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 9ad7369..8acced8 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -6,7 +6,6 @@ on: release: types: [published, edited] - jobs: build: @@ -34,5 +33,8 @@ jobs: run: | python setup.py sdist bdist_wheel twine upload --repository-url dist/* - - + + - name: Install from PyPI + run: | + pip install -U idrlnet + pip show idrlnet diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 72f3bce..90cbd21 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -31,8 +31,8 @@ jobs: run: | # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. Theg GitHub editor is 127 chars wide + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - python examples/simple_poisson/simple_poisson.py + python examples/simple_poisson/simple_poisson.py \ No newline at end of file