Use GitHub actions for CI (#7)

This commit is contained in:
François Voron
2019-10-13 19:01:39 +02:00
committed by GitHub
parent 99dca57dbb
commit c111f00318
3 changed files with 29 additions and 15 deletions

28
.github/workflows/test.yml vendored Normal file
View 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

View File

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

View File

@ -8,7 +8,7 @@
<em>Ready-to-use and customizable users management for FastAPI </em>
</p>
[![Build Status](https://travis-ci.org/frankie567/fastapi-users.svg?branch=master)](https://travis-ci.org/frankie567/fastapi-users)
[![build](https://github.com/frankie567/fastapi-users/workflows/Unit%20tests/badge.svg)](https://github.com/frankie567/fastapi-users/actions)
[![codecov](https://codecov.io/gh/frankie567/fastapi-users/branch/master/graph/badge.svg)](https://codecov.io/gh/frankie567/fastapi-users)
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=frankie567/fastapi-users)](https://dependabot.com)