Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
chore(release): move from travis to github actions
- Loading branch information
Showing
41 changed files
with
461 additions
and
153 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,9 @@ | ||
reports/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
.pytest*/ | ||
build/ | ||
libgraphqlparser/ | ||
dist/ | ||
github-landing.png |
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,77 @@ | ||
workflow "build and release" { | ||
on = "push" | ||
resolves = ["release"] | ||
} | ||
|
||
action "build docker image" { | ||
uses = "actions/docker/cli@master" | ||
args = "build -t tartiflette-aiohttp ." | ||
} | ||
|
||
action "unit test" { | ||
needs = ["build docker image"] | ||
uses = "actions/docker/cli@master" | ||
args = "run -i tartiflette-aiohttp make test-unit" | ||
} | ||
|
||
action "functional test" { | ||
needs = ["build docker image"] | ||
uses = "actions/docker/cli@master" | ||
args = "run -i tartiflette-aiohttp make test-functional" | ||
} | ||
|
||
action "integration test" { | ||
needs = ["build docker image"] | ||
uses = "actions/docker/cli@master" | ||
args = "run -i tartiflette-aiohttp make test-integration" | ||
} | ||
|
||
action "style" { | ||
needs = ["build docker image"] | ||
uses = "actions/docker/cli@master" | ||
args = "run -i tartiflette-aiohttp make style" | ||
} | ||
|
||
action "complexity" { | ||
needs = ["build docker image"] | ||
uses = "actions/docker/cli@master" | ||
args = "run -i tartiflette-aiohttp make complexity" | ||
} | ||
|
||
action "build and publish to pypi" { | ||
uses = "./github-actions/pypi/" | ||
secrets = ["TWINE_PASSWORD", "TWINE_USERNAME"] | ||
needs = ["unit test", "functional test", "integration test", "style", "complexity"] | ||
} | ||
|
||
action "is master" { | ||
uses = "actions/bin/filter@master" | ||
needs = ["build and publish to pypi"] | ||
args = "branch master" | ||
} | ||
|
||
action "is ref master" { | ||
uses = "./github-actions/shell/" | ||
needs = ["is master"] | ||
runs = "is_ref" | ||
env = { | ||
REF_NAME = "refs/heads/master" | ||
} | ||
} | ||
|
||
action "set version and changelog" { | ||
uses = "./github-actions/shell/" | ||
needs = ["is ref master"] | ||
runs = "make" | ||
args = "github-action-version-and-changelog" | ||
} | ||
|
||
action "release" { | ||
uses = "./github-actions/release/" | ||
secrets = ["GITHUB_TOKEN"] | ||
needs = ["set version and changelog"] | ||
env = { | ||
USERNAME = "dailymotion" | ||
REPOSITORY = "tartiflette-aiohttp" | ||
} | ||
} |
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,11 @@ | ||
[settings] | ||
line_length=79 | ||
indent=' ' | ||
multi_line_output=3 | ||
known_third_party=pytz,cffi,lark-parser | ||
known_first_party=tartiflette,tests | ||
include_trailing_comma=1 | ||
use_parentheses=1 | ||
force_grid_wrap=0 | ||
combine_as_imports=1 | ||
lines_between_types=1 |
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,12 @@ | ||
FROM python:3.7.2 | ||
|
||
RUN apt-get update && apt-get install -y cmake bison flex | ||
|
||
ENV PYTHONPATH=/usr/src/app/ | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY . /usr/src/app/ | ||
|
||
RUN make init | ||
RUN pip install -e .[test] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# [0.1.1] - 2018-12-06 | ||
|
||
## Added | ||
|
||
- Everythings needed to have a package and a little CI. |
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,5 @@ | ||
# [0.1.2] - 2018-12-07 | ||
|
||
## Added | ||
|
||
- Add code that implements interface describe in the README.md file. |
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,5 @@ | ||
# [0.2.0] - 2019-01-14 | ||
|
||
## Changed | ||
|
||
- Update Tartiflette deps to 0.3.x |
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,5 @@ | ||
# [0.2.1] - 2019-02-21 | ||
|
||
## Added | ||
|
||
- Add an optional GraphiQL view handler. |
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,5 @@ | ||
# [0.3.0] - 2019-02-25 | ||
|
||
## Added | ||
|
||
- Add a built-in handler for WebSocket subscriptions. |
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,5 @@ | ||
# [0.3.1] - 2019-02-28 | ||
|
||
## Fixed | ||
|
||
- Fix WebSockets handler to works even if `executor_http_methods` allows only `POST` method. |
Oops, something went wrong.