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