From c111f0031861c92b8cf52f3665aaffa5d303a83c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Voron?= Date: Sun, 13 Oct 2019 19:01:39 +0200 Subject: [PATCH] Use GitHub actions for CI (#7) --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ .travis.yml | 14 -------------- README.md | 2 +- 3 files changed, 29 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..40fcf13e --- /dev/null +++ b/.github/workflows/test.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d8951bb7..00000000 --- a/.travis.yml +++ /dev/null @@ -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 diff --git a/README.md b/README.md index d987a717..91dc106e 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Ready-to-use and customizable users management for FastAPI

-[![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)