-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
466 additions
and
229 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 |
---|---|---|
|
@@ -38,4 +38,4 @@ frontend/src/clients/openapi | |
.env | ||
.husky | ||
.mypy_cache | ||
Dockerfile | ||
Dockerfile |
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,5 +1,5 @@ | ||
name: Continuous Integration | ||
on: | ||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- main | ||
|
@@ -12,13 +12,23 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Python 3 | ||
uses: actions/setup-python@v1 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
cache: 'pip' | ||
- name: Install node 14.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version-file: 'frontend/.nvmrc' | ||
- name: Cache node modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
node_modules | ||
frontend/node_modules | ||
# yamllint disable rule:line-length | ||
key: node-${{ hashFiles('.nvmrc', 'package-lock.json', 'frontend/package-lock.json') }} | ||
# yamllint enable | ||
- name: Install node components | ||
run: | | ||
npm run gen-api-code | ||
|
@@ -27,7 +37,29 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r backend/src/gen/requirements.txt | ||
pip install -r backend/requirements.txt -r backend/src/gen/requirements.txt | ||
integration-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Python 3 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
cache: 'pip' | ||
- name: Install node 14.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version-file: 'frontend/.nvmrc' | ||
- name: Generate code | ||
run: npm run gen-api-code | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r backend/requirements.txt -r backend/src/gen/requirements.txt | ||
- name: Test | ||
run: PYTHONPATH=backend/src/gen python -m unittest discover -v backend/src/tests | ||
timeout-minutes: 10 | ||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -68,3 +100,59 @@ jobs: | |
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: upgrade-type-hints --all-files | ||
typecheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Python 3 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.9 | ||
- name: mypy | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: mypy --all-files | ||
lint-requirements-txt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: lint | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: requirements-txt-fixer --all-files | ||
markdownlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
- name: lint | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: markdownlint-cli2 --all-files | ||
yamllint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: lint | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: yamllint --all-files | ||
lint-trailing-whitespace: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: lint | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: trailing-whitespace --all-files | ||
lint-eof-newline: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: lint | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: end-of-file-fixer --all-files |
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,4 @@ | ||
config: | ||
MD013: | ||
# Number of characters | ||
line_length: 88 |
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,8 @@ | ||
extends: default | ||
|
||
rules: | ||
line-length: | ||
max: 88 | ||
document-start: disable | ||
truthy: | ||
level: error |
Validating CODEOWNERS rules …
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,2 @@ | ||
# Global owner | ||
* @neubig @lyuyangh |
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.