Skip to content

Commit a437327

Browse files
authored
Merge pull request getslash#645 from getslash/feature/github_actions
Feature/GitHub actions
2 parents b919ef4 + 85a0102 commit a437327

File tree

5 files changed

+1033
-553
lines changed

5 files changed

+1033
-553
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
on: [push]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
services:
7+
redis:
8+
image: redis:latest
9+
ports:
10+
- 6379:6379
11+
postgres:
12+
image: bitnami/postgresql:latest
13+
env:
14+
POSTGRESQL_DATABASE: backslash
15+
POSTGRESQL_PASSWORD: backslash
16+
POSTGRESQL_USERNAME: backslash
17+
POSTGRESQL_FSYNC: "off"
18+
ports:
19+
- 5432:5432
20+
options: >-
21+
--mount type=tmpfs,destination=/var/lib/postgresql/data
22+
--health-cmd "pg_isready -d backslash -U backslash -p 5432"
23+
--health-interval 10s
24+
--health-timeout 5s
25+
--health-retries 5
26+
27+
28+
steps:
29+
- name: Install dependencies
30+
run: |
31+
sudo apt-get update
32+
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
33+
- name: Setup Python
34+
uses: actions/setup-python@v2
35+
with:
36+
python-version: "3.6"
37+
- run: pip install pipenv
38+
- name: Check out repository code
39+
uses: actions/checkout@v2
40+
- run: pipenv install -d
41+
- run: pipenv run manage db upgrade
42+
- run: pipenv run manage unittest
43+
- run: pipenv run manage

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,8 @@ webapp/tmp
6161
tests/.cache
6262
flycheck_*
6363
/.pytest_cache
64+
65+
# vscode
66+
.vscode
67+
# virtualenv
68+
.venv

Pipfile

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,62 @@
11
[[source]]
2+
name = "pypi"
23
url = "https://pypi.org/simple"
34
verify_ssl = true
4-
name = "pypi"
55

66
[packages]
7-
Flask = ">=0.10.1"
8-
alembic = ">=0.7.3"
9-
inflect = "*"
10-
"psycopg2" = "*"
11-
flux = ">=1.3.0"
12-
flask-simple-api = ">=1.4.0"
13-
munch = "*"
14-
pendulum = ">=2.0.1"
15-
pyparsing = "*"
16-
raven = {extras = ["flask"],version = "*"}
17-
celery = {extras = ["redis"],version = "*"}
18-
gunicorn = "*"
19-
watchdog = "*"
20-
google-api-python-client = "*"
21-
"oauth2client" = "*"
22-
pyldap = "*"
23-
dateparser = "*"
24-
pgcli = "*"
25-
elasticsearch = "<7.0.0,>=6.0.0"
26-
"dogpile.cache" = "*"
27-
Flask-Mail = "*"
28-
Flask-RESTful = "*"
7+
Flask = "<2.0"
298
Flask-Login = ">=0.3.0,<0.4.0"
30-
Flask-Security = ">=1.7.5"
9+
Flask-Mail = "*"
3110
Flask-Migrate = ">=1.3.0"
11+
Flask-RESTful = "*"
3212
Flask-SQLAlchemy = ">=2.2"
33-
SQLAlchemy = ">=1.1.0"
13+
Flask-Security = ">=3.0.0"
14+
SQLAlchemy = ">=1.1.0,<1.3"
3415
URLObject = "*"
35-
weber_utils = "*"
3616
Werkzeug = ">=0.10.2"
37-
click = "<7"
38-
redis = "*"
39-
pyyaml = "*"
40-
itsdangerous = "*"
17+
alembic = ">=0.7.3,<1.3"
18+
celery = {extras = ["redis"], version = "<5.0.0"}
19+
click = "<9"
20+
dateparser = "*"
21+
"dogpile.cache" = "*"
22+
elasticsearch = "<7.0.0,>=6.0.0"
23+
email_validator = "*"
24+
flask-simple-api = ">=1.4.0"
25+
flux = ">=1.3.0"
26+
google-api-python-client = "*"
27+
gunicorn = "*"
28+
inflect = "*"
29+
itsdangerous = "<2.0"
4130
logbook = "*"
31+
munch = "*"
32+
"oauth2client" = "*"
33+
pendulum = ">=2.0.1"
34+
pgcli = "*"
35+
"psycopg2" = "*"
36+
pyldap = "*"
37+
pyparsing = "*"
38+
pyyaml = "*"
39+
raven = {extras = ["flask"], version = "*"}
40+
redis = "*"
41+
watchdog = "*"
42+
weber_utils = "*"
4243

4344
[dev-packages]
45+
Flask-Loopback = "*"
46+
backslash = ">=2.31.1"
47+
ipython = "*"
4448
pytest = "*"
4549
pytest-cov = "*"
4650
pytest-selenium = "*"
47-
backslash = ">=2.31.1"
48-
tmuxp = "*"
49-
ipython = "*"
5051
slash = "*"
52+
tmuxp = "*"
5153
yarl = "*"
52-
Flask-Loopback = "*"
5354

5455
[requires]
5556
python_version = "3.6"
5657

5758
[scripts]
58-
testserver = "python manage.py testserver"
59-
wsgi = "python manage.py testserver --no-tmux --port 8800"
6059
manage = "python manage.py"
60+
testserver = "python manage.py testserver"
6161
travis_publish = "python scripts/travis_docker_publish.py"
62+
wsgi = "python manage.py testserver --no-tmux --port 8800"

0 commit comments

Comments
 (0)