Add a test_build phase to ensure produced output is working

This commit is contained in:
François Voron
2020-11-30 14:04:42 +01:00
parent 31168ce9d3
commit 512c5c0d35
3 changed files with 16 additions and 1 deletions

View File

@ -32,6 +32,11 @@ jobs:
run: | run: |
pipenv run pytest --cov=fastapi_users/ pipenv run pytest --cov=fastapi_users/
pipenv run codecov pipenv run codecov
- name: Build and install it on system host
run: |
pipenv run flit build
pipenv run flit install --python $(which python)
python test_build.py
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -17,7 +17,8 @@ ignore = D1
profile = black profile = black
[tool:pytest] [tool:pytest]
markers = addopts = --ignore=test_build.py
markers =
authentication authentication
db db
fastapi_users fastapi_users

9
test_build.py Normal file
View File

@ -0,0 +1,9 @@
# flake8: noqa
import sys
try:
from fastapi_users import FastAPIUsers
except:
sys.exit(1)
sys.exit(0)