-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Refactor update from base image (#16)
* 🔥 Refactor code to simplify and deduplicate * 👷 Add GitHub Actions for CI * 🔧 Update build and test scripts * ✅ Update tests * ➕ Add dev dependencies * 📝 Update docs with new configs * ✅ Fix tests
- Loading branch information
Showing
29 changed files
with
386 additions
and
134 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,44 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
image: | ||
- name: latest | ||
python_version: "3.8" | ||
- name: python3.8 | ||
python_version: "3.8" | ||
- name: python3.7 | ||
python_version: "3.7" | ||
- name: python3.6 | ||
python_version: "3.6" | ||
- name: python3.8-alpine3.10 | ||
python_version: "3.8" | ||
- name: python3.7-alpine3.8 | ||
python_version: "3.7" | ||
- name: python3.6-alpine3.8 | ||
python_version: "3.6" | ||
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 }} |
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 @@ | ||
name: Issue Manager | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
issue-manager: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: tiangolo/issue-manager@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
config: > | ||
{ | ||
"answered": { | ||
"users": ["tiangolo"], | ||
"delay": 864000, | ||
"message": "Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues." | ||
} | ||
} |
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,42 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
image: | ||
- name: latest | ||
python_version: "3.8" | ||
- name: python3.8 | ||
python_version: "3.8" | ||
- name: python3.7 | ||
python_version: "3.7" | ||
- name: python3.6 | ||
python_version: "3.6" | ||
- name: python3.8-alpine3.10 | ||
python_version: "3.8" | ||
- name: python3.7-alpine3.8 | ||
python_version: "3.7" | ||
- name: python3.6-alpine3.8 | ||
python_version: "3.6" | ||
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 was deleted.
Oops, something went wrong.
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
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,35 @@ | ||
dist: xenial | ||
|
||
language: python | ||
|
||
python: | ||
- "3.7" | ||
|
||
install: | ||
- pip install docker pytest | ||
|
||
services: | ||
- docker | ||
|
||
env: | ||
- NAME='latest' PYTHON_VERSION='3.8' | ||
- NAME='python3.8' PYTHON_VERSION='3.8' | ||
- NAME='python3.7' PYTHON_VERSION='3.7' | ||
- NAME='python3.6' PYTHON_VERSION='3.6' | ||
- NAME='python3.8-alpine3.10' PYTHON_VERSION='3.8' | ||
- NAME='python3.7-alpine3.8' PYTHON_VERSION='3.7' | ||
- NAME='python3.6-alpine3.8' PYTHON_VERSION='3.6' | ||
|
||
script: | ||
- bash scripts/test.sh | ||
|
||
jobs: | ||
include: | ||
- script: bash scripts/test.sh | ||
- stage: deploy | ||
script: skip | ||
deploy: | ||
provider: script | ||
script: bash scripts/build-push-all.sh | ||
on: | ||
branch: master |
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
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
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
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
Oops, something went wrong.