-
-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ➕ Move from Pipenv to Poetry * 👷 Add GitHub Actions for CI * 👷 Disable Travis * 🔥 Centralize and simplify building setup * 🔧 Update scripts and testing setup * ✅ Update tests with new setup * 🙈 Add poetry.lock to .gitignore * 🔧 Add mypy config * 📝 Update README * 🐛 Fix Python 2.7 base image
- Loading branch information
Showing
118 changed files
with
300 additions
and
1,362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
image: | ||
- name: latest | ||
python_version: "3.7" | ||
- name: python3.7 | ||
python_version: "3.7" | ||
- name: python3.6 | ||
python_version: "3.6" | ||
- name: python3.5 | ||
python_version: "3.5" | ||
- name: python2.7 | ||
python_version: "2.7" | ||
- name: python3.6-alpine3.8 | ||
python_version: "3.6" | ||
- name: python3.6-alpine3.7 | ||
python_version: "3.6" | ||
- name: python2.7-alpine3.8 | ||
python_version: "2.7" | ||
- name: python2.7-alpine3.7 | ||
python_version: "2.7" | ||
fail-fast: true | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.7" | ||
- name: Install Dependencies | ||
run: python3.7 -m pip install docker pytest | ||
- name: Deploy Image | ||
run: bash scripts/build-push.sh | ||
env: | ||
NAME: ${{ matrix.image.name }} | ||
DOCKERFILE: ${{ matrix.image.dockerfile }} | ||
PYTHON_VERSION: ${{ matrix.image.python_version }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} |
2 changes: 2 additions & 0 deletions
2
.github/workflows/main.yml → .github/workflows/issue-manager.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
name: Issue Manager | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
image: | ||
- name: latest | ||
python_version: "3.7" | ||
- name: python3.7 | ||
python_version: "3.7" | ||
- name: python3.6 | ||
python_version: "3.6" | ||
- name: python3.5 | ||
python_version: "3.5" | ||
- name: python2.7 | ||
python_version: "2.7" | ||
- name: python3.6-alpine3.8 | ||
python_version: "3.6" | ||
- name: python3.6-alpine3.7 | ||
python_version: "3.6" | ||
- name: python2.7-alpine3.8 | ||
python_version: "2.7" | ||
- name: python2.7-alpine3.7 | ||
python_version: "2.7" | ||
fail-fast: true | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.7" | ||
- name: Install Dependencies | ||
run: python3.7 -m pip install docker pytest | ||
- name: Test Image | ||
run: bash scripts/test.sh | ||
env: | ||
NAME: ${{ matrix.image.name }} | ||
DOCKERFILE: ${{ matrix.image.dockerfile }} | ||
PYTHON_VERSION: ${{ matrix.image.python_version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,3 +109,4 @@ crashlytics-build.properties | |
|
||
# Custom | ||
Pipfile.lock | ||
poetry.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[mypy] | ||
disallow_untyped_defs = True | ||
ignore_missing_imports = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[tool.poetry] | ||
name = "uwsgi-nginx-flask-docker" | ||
version = "0.1.0" | ||
description = "Docker image with uWSGI and Nginx for Flask applications in Python 3.6 and above and Python 2.7 running in a single container. Optionally with Alpine Linux." | ||
authors = ["Sebastián Ramírez <[email protected]>"] | ||
license = "MIT" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
docker = "^4.2.0" | ||
pytest = "^5.4.1" | ||
|
||
[tool.poetry.dev-dependencies] | ||
black = "^19.10b0" | ||
isort = "^4.3.21" | ||
autoflake = "^1.3.1" | ||
mypy = "^0.770" | ||
|
||
[build-system] | ||
requires = ["poetry>=0.12"] | ||
build-backend = "poetry.masonry.api" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.