Skip to content

Commit

Permalink
Merge pull request #134 from consideRatio/gha
Browse files Browse the repository at this point in the history
ci: transition from circleci to github workflows
  • Loading branch information
lambdaTotoro authored Jan 31, 2021
2 parents 3ac3113 + eec91a3 commit 1d5b3b8
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 29 deletions.
23 changes: 0 additions & 23 deletions .circleci/config.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# This is a GitHub workflow defining a set of jobs with a set of steps.
# ref: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
#
name: Test

on:
pull_request:
push:
workflow_dispatch:

jobs:
flake8:
name: Run flake8
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"

- name: Install Python dependencies
run: |
pip install --no-cache-dir -r dev-requirements.txt
pip install .
- name: Run tests
run: |
flake8
pytest:
name: Run pytests
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- python-version: 3.6
- python-version: 3.7
- python-version: 3.8
- python-version: 3.9

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python-version}}"

- name: Install Python dependencies
run: |
pip install --no-cache-dir -r dev-requirements.txt
pip install .
- name: Run tests
continue-on-error: ${{ matrix.accept-failure == true }}
run: |
pytest --verbose --maxfail=2 --color=yes
- name: Upload code coverage report
run: codecov
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# Native Authenticator


[![Circle Ci Badge](https://img.shields.io/circleci/project/github/jupyterhub/nativeauthenticator.svg)](https://circleci.com/gh/jupyterhub/nativeauthenticator)

![Code Cov](https://img.shields.io/codecov/c/github/jupyterhub/nativeauthenticator.svg)

[![Documentation build status](https://img.shields.io/readthedocs/native-authenticator?logo=read-the-docs&logoColor=white)](https://native-authenticator.readthedocs.org/en/latest/)
[![Latest PyPI version](https://img.shields.io/pypi/v/jupyterhub-nativeauthenticator?logo=pypi&logoColor=white)](https://pypi.python.org/pypi/jupyterhub-nativeauthenticator)
[![Documentation build status](https://img.shields.io/readthedocs/native-authenticator?logo=read-the-docs&logoColor=white)](https://native-authenticator.readthedocs.org/en/latest/)
[![GitHub Workflow Status - Test](https://img.shields.io/github/workflow/status/jupyterhub/nativeauthenticator/Test?logo=github&label=tests)](https://github.com/jupyterhub/nativeauthenticator/actions)
[![Code coverage](https://img.shields.io/codecov/c/github/jupyterhub/nativeauthenticator.svg)](https://codecov.io/github/jupyterhub/nativeauthenticator)
<br>
[![GitHub](https://img.shields.io/badge/issue_tracking-github-blue?logo=github)](https://github.com/jupyterhub/nativeauthenticator/issues)
[![Discourse](https://img.shields.io/badge/help_forum-discourse-blue?logo=discourse)](https://discourse.jupyter.org/c/jupyterhub)
Expand Down

0 comments on commit 1d5b3b8

Please sign in to comment.