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: |
pipenv run pytest --cov=fastapi_users/
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:
runs-on: ubuntu-latest

View File

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

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)