-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ported Buildkite checks to Github actions (#210)
- Loading branch information
Showing
3 changed files
with
78 additions
and
0 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,13 @@ | ||
Name: Changelog | ||
on: [pull_request] | ||
|
||
jobs: | ||
check-newsfile: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
- run: python -m pip install towncrier | ||
- run: python -m towncrier.check |
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,64 @@ | ||
name: Linting and Tests | ||
on: [push] | ||
jobs: | ||
check-code-style: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
- run: python -m pip install tox | ||
- run: tox -e check_codestyle | ||
|
||
check-types-mypy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
- run: python -m pip install tox | ||
- run: tox -e check_types | ||
|
||
run-unit-tests-sqlite: | ||
needs: [check-code-style, check-types-mypy] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
- run: python -m pip install -e . | ||
- run: trial tests | ||
|
||
run-unit-tests-postgres: | ||
needs: [check-code-style, check-types-mypy] | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
postgres: | ||
image: postgres:11 | ||
ports: | ||
- 5432:5432 | ||
env: | ||
POSTGRES_PASSWORD: "postgres" | ||
POSTGRES_INITDB_ARGS: "--lc-collate C --lc-ctype C --encoding UTF8" | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
- run: python -m pip install -e . | ||
- run: trial tests | ||
env: | ||
TEST_USE_POSTGRES: "yes" | ||
TEST_POSTGRES_USER: "postgres" | ||
TEST_POSTGRES_PASSWORD: "postgres" | ||
TEST_POSTGRES_HOST: "localhost" |
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 @@ | ||
Port CI checks to Github Actions. |