ci: update pypi installation check

This commit is contained in:
zweien 2021-07-15 12:39:42 +08:00
parent d6bb4b3a68
commit 5f9b1b184d
2 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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