Skip to content

Commit a1b58ad

Browse files
authored
Fix github workflow (#91)
* add permissions to pip command * add badge to README and remove circleci
1 parent e5a1e74 commit a1b58ad

File tree

3 files changed

+42
-58
lines changed

3 files changed

+42
-58
lines changed

.circleci/config.yml

-27
This file was deleted.

.github/workflows/python-app.yml

+14-16
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,24 @@ name: build
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312

1413
steps:
15-
- uses: actions/checkout@v2
16-
- name: Set up Python 3.8
17-
uses: actions/setup-python@v2
18-
with:
19-
python-version: 3.8
20-
- name: Install dependencies
21-
run: |
22-
python -m pip install --upgrade pip
23-
pip install cookiecutter
24-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
25-
- name: Run tests
26-
run: |
27-
sudo ./scripts/test.sh
14+
- uses: actions/checkout@v2
15+
- name: Set up Python 3.8
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: 3.8
19+
- name: Install dependencies
20+
run: |
21+
sudo python -m pip install --upgrade pip
22+
sudo pip install cookiecutter
23+
- name: Run tests
24+
run: |
25+
sudo ./scripts/test.sh

README.md

+28-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# FastAPI + React · [![CircleCI](https://circleci.com/gh/Buuntu/fastapi-react.svg?style=shield)](https://circleci.com/gh/Buuntu/fastapi-react) [![license](https://img.shields.io/github/license/peaceiris/actions-gh-pages.svg)](LICENSE) [![Dependabot Status](https://img.shields.io/badge/Dependabot-active-brightgreen.svg)](https://dependabot.com)
1+
# FastAPI + React · ![build](https://github.com/Buuntu/fastapi-react/workflows/build/badge.svg) [![license](https://img.shields.io/github/license/peaceiris/actions-gh-pages.svg)](LICENSE) [![Dependabot Status](https://img.shields.io/badge/Dependabot-active-brightgreen.svg)](https://dependabot.com)
22

33
<div>
44
<img src="assets/fastapi-logo.png" alt="fastapi-logo" height="60" /> <img
@@ -47,20 +47,33 @@ modern stack.
4747

4848
## Table of Contents
4949

50-
- [Background](#background)
51-
- [Quick Start](#quick-start)
52-
- [Develop](#develop)
53-
- [Admin Dashboard](#admin-dashboard)
54-
- [Security](#security)
55-
- [Testing](#testing)
56-
- [Fixtures](#fixtures)
57-
- [Background Tasks](#background-tasks)
58-
- [Flower](#flower)
59-
- [Frontend Utilities](#frontend-utilities)
60-
- [Utility Functions](#utility-functions)
61-
- [Routes](#routes)
62-
- [Higher-Order Components](#higher-order-components)
63-
- [Contributing](#contributing)
50+
- [FastAPI + React · !build [![license](https://img.shields.io/github/license/peaceiris/actions-gh-pages.svg)](LICENSE) [![Dependabot Status](https://img.shields.io/badge/Dependabot-active-brightgreen.svg)](https://dependabot.com)](#fastapi--react--img-srchttpsgithubcombuuntufastapi-reactworkflowsbuildbadgesvg-altbuild-img-srchttpsimgshieldsiogithublicensepeaceirisactions-gh-pagessvg-altlicense-img-srchttpsimgshieldsiobadgedependabot-active-brightgreensvg-altdependabot-status)
51+
- [Features](#features)
52+
- [Table of Contents](#table-of-contents)
53+
- [Background](#background)
54+
- [Quick Start](#quick-start)
55+
- [Develop](#develop)
56+
- [Admin Dashboard](#admin-dashboard)
57+
- [Security](#security)
58+
- [Testing](#testing)
59+
- [Fixtures](#fixtures)
60+
- [test_db](#test_db)
61+
- [test_user](#test_user)
62+
- [test_superuser](#test_superuser)
63+
- [client](#client)
64+
- [user_token_headers](#user_token_headers)
65+
- [superuser_token_headers](#superuser_token_headers)
66+
- [Background Tasks](#background-tasks)
67+
- [Flower](#flower)
68+
- [Frontend Utilities](#frontend-utilities)
69+
- [Utility Functions](#utility-functions)
70+
- [login](#login)
71+
- [logout](#logout)
72+
- [isAuthenticated](#isauthenticated)
73+
- [Routes](#routes)
74+
- [Higher Order Components](#higher-order-components)
75+
- [PrivateRoute](#privateroute)
76+
- [Contributing](#contributing)
6477

6578
## Background
6679

0 commit comments

Comments
 (0)