mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-11-02 04:05:19 +08:00
Add a test_build phase to ensure produced output is working
This commit is contained in:
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -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
|
||||
|
||||
@ -17,6 +17,7 @@ ignore = D1
|
||||
profile = black
|
||||
|
||||
[tool:pytest]
|
||||
addopts = --ignore=test_build.py
|
||||
markers =
|
||||
authentication
|
||||
db
|
||||
|
||||
9
test_build.py
Normal file
9
test_build.py
Normal file
@ -0,0 +1,9 @@
|
||||
# flake8: noqa
|
||||
import sys
|
||||
|
||||
try:
|
||||
from fastapi_users import FastAPIUsers
|
||||
except:
|
||||
sys.exit(1)
|
||||
|
||||
sys.exit(0)
|
||||
Reference in New Issue
Block a user