-
Notifications
You must be signed in to change notification settings - Fork 32
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
1 parent
3c41091
commit b1ae1b0
Showing
7 changed files
with
263 additions
and
10 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,31 @@ | ||
client: | ||
- '**/*.py' | ||
- 'client/**' | ||
|
||
console: | ||
- 'console/**' | ||
|
||
docker: | ||
- 'docker/**' | ||
|
||
server: | ||
- '**/*.java' | ||
- 'server/**' | ||
|
||
docs: | ||
- 'docs/**' | ||
|
||
scripts: | ||
- 'script/**' | ||
|
||
js: | ||
- '**/*.js' | ||
- '**/*.jsx' | ||
- '**/*.ts' | ||
- '**/*.tsx' | ||
|
||
scss: | ||
- '**/*.scss' | ||
|
||
java: | ||
- '**/*.java' |
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,123 @@ | ||
name: Python Client/SDK | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
|
||
filter: | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
client: ${{ steps.filter.outputs.client }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Check for python files changed | ||
uses: getsentry/paths-filter@v2 | ||
id: filter | ||
with: | ||
base: main | ||
filters: .github/file-filter.yml | ||
|
||
|
||
codestyle: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
needs: | ||
- filter | ||
if: ${{ (github.event_name == 'pull_request' && needs.filter.outputs.client == 'true') || github.event_name == 'push' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.7' | ||
architecture: 'x64' | ||
|
||
- name: Get pip cache | ||
id: pip-cache-path | ||
run: echo "::set-output name=dir::$(pip cache dir)" | ||
|
||
- name: Cache pip dependencies | ||
uses: actions/cache@v3 | ||
id: pip-cache | ||
with: | ||
path: ${{ steps.pip-cache-path.outputs.dir }} | ||
key: ${{ runner.os }}-codestyle-${{ hashFiles('client/requirements-dev.txt')}} | ||
|
||
- name: Install dependencies | ||
working-directory: ./client | ||
run: | | ||
make install-req | ||
make install-dev-req | ||
- name: Black format check | ||
working-directory: ./client | ||
run: make ci-format | ||
- name: Lint check | ||
working-directory: ./client | ||
run: make ci-lint | ||
- name: Type Check | ||
working-directory: ./client | ||
run: make ci-type | ||
|
||
unittest: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
needs: | ||
- filter | ||
if: ${{ (github.event_name == 'pull_request' && needs.filter.outputs.client == 'true') || github.event_name == 'push' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.7' | ||
architecture: 'x64' | ||
|
||
- name: Get pip cache | ||
id: pip-cache-path | ||
run: echo "::set-output name=dir::$(pip cache dir)" | ||
|
||
- name: Cache pip dependencies | ||
uses: actions/cache@v3 | ||
id: pip-cache | ||
with: | ||
path: ${{ steps.pip-cache-path.outputs.dir }} | ||
key: ${{ runner.os }}-unittest-${{ hashFiles('client/requirements-dev.txt')}} | ||
|
||
- name: Install dependencies | ||
working-directory: ./client | ||
run: | | ||
make install-req | ||
make install-dev-req | ||
- name: Run Unittest | ||
working-directory: ./client | ||
run: make ut | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3.1.0 | ||
with: | ||
name: codecov | ||
fail_ci_if_error: false | ||
directory: ./client/coverage/reports/ | ||
files: ./coverage.xml | ||
flags: unittests | ||
verbose: 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,36 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
schedule: | ||
- cron: '23 22 * * 4' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'java', 'javascript', 'python', 'typescript' ] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
twine==4.0.0 | ||
twine==4.0.0 | ||
black==22.3.0 | ||
flake8==4.0.1 | ||
mypy==0.950 | ||
mypy-extensions==0.4.3 | ||
profimp==0.1.0 |