mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-15 11:11:16 +08:00
Use GitHub actions for CI (#7)
This commit is contained in:
28
.github/workflows/test.yml
vendored
Normal file
28
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
name: Unit tests
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python_version: [3.7]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Set up Python 3.7
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python_version }}
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pipenv
|
||||||
|
pipenv install --dev
|
||||||
|
- name: Test with pytest
|
||||||
|
env:
|
||||||
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
run: |
|
||||||
|
pipenv run pytest --cov=./
|
||||||
|
pipenv run codecov
|
14
.travis.yml
14
.travis.yml
@ -1,14 +0,0 @@
|
|||||||
language: python
|
|
||||||
|
|
||||||
python:
|
|
||||||
- "3.7"
|
|
||||||
- "3.7-dev"
|
|
||||||
- "3.8-dev"
|
|
||||||
|
|
||||||
install:
|
|
||||||
- pip install pipenv
|
|
||||||
- pipenv install --dev
|
|
||||||
|
|
||||||
script:
|
|
||||||
- pipenv run pytest --cov=./
|
|
||||||
- pipenv run codecov
|
|
@ -8,7 +8,7 @@
|
|||||||
<em>Ready-to-use and customizable users management for FastAPI </em>
|
<em>Ready-to-use and customizable users management for FastAPI </em>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
[](https://travis-ci.org/frankie567/fastapi-users)
|
[](https://github.com/frankie567/fastapi-users/actions)
|
||||||
[](https://codecov.io/gh/frankie567/fastapi-users)
|
[](https://codecov.io/gh/frankie567/fastapi-users)
|
||||||
[](https://dependabot.com)
|
[](https://dependabot.com)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user