-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2634 from kbase/develop
Merging up for 5.0.0 release
- Loading branch information
Showing
543 changed files
with
85,812 additions
and
73,482 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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
[flake8] | ||
# https://ljvmiranda921.github.io/notebook/2018/06/21/precommits-using-black-and-flake8/ | ||
ignore = E203, E266, E501, W503, F403, F401, E402, C901 | ||
# max-line-length = 79 | ||
# max-complexity = 15 | ||
select = B,C,E,F,W,T4,B9 | ||
exclude = | ||
./test/selenium_scripts/ | ||
.git, | ||
.github, | ||
deployment, | ||
docs, | ||
node_modules |
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,23 @@ | ||
codecov: | ||
require_ci_to_pass: yes | ||
|
||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "70...100" | ||
|
||
parsers: | ||
gcov: | ||
branch_detection: | ||
conditional: yes | ||
loop: yes | ||
method: no | ||
macro: no | ||
|
||
comment: | ||
layout: "reach,diff,flags,files,footer" | ||
behavior: default | ||
require_changes: no | ||
|
||
github_checks: | ||
annotations: false |
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 |
---|---|---|
|
@@ -17,16 +17,15 @@ jobs: | |
auto-update-conda: true | ||
condarc-file: test/condarc.yml | ||
|
||
- name: Use Node JS 14.x | ||
uses: actions/setup-node@v1 | ||
- name: Use Node JS 16.x | ||
uses: actions/setup-node@v2.1.2 | ||
with: | ||
node-version: 14.x | ||
node-version: 16.x | ||
|
||
- name: Install JS dependencies | ||
run: | | ||
npm ci | ||
npm install bower | ||
./node_modules/bower/bin/bower install | ||
npm run install-npm | ||
- name: Install Narrative Application | ||
shell: bash -l {0} | ||
|
@@ -37,25 +36,36 @@ jobs: | |
sed -i 's/{{ if ne .Env.CONFIG_ENV "prod" }} true {{- else }} false {{- end }}/true/' src/config.json | ||
jupyter notebook --version | ||
- name: Set up environment vars | ||
run: | | ||
echo "KBASE_TEST_TOKEN=${{ secrets.NARRATIVE_TEST_TOKEN }}" >> $GITHUB_ENV | ||
- name: Run Narrative Backend Tests | ||
id: test_backend | ||
shell: bash -l {0} | ||
run: make test-backend | ||
continue-on-error: true | ||
|
||
- name: Run Narrative Frontend Unit Tests | ||
id: test_frontend | ||
shell: bash -l {0} | ||
run: make test-frontend-unit | ||
|
||
- name: make test output available as artifact in case of failure | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: karma-result.json | ||
path: karma-result.json | ||
continue-on-error: true | ||
|
||
- name: Send to Codecov | ||
id: send_to_codecov | ||
uses: codecov/[email protected] | ||
continue-on-error: true | ||
with: | ||
file: | | ||
./python-coverage/coverage.xml | ||
./js-coverage/lcov/lcov.info | ||
fail_ci_if_error: true | ||
|
||
- name: outcome | ||
if: steps.test_backend.outcome != 'success' || steps.test_frontend.outcome != 'success' || steps.send_to_codecov.outcome != 'success' | ||
run: | | ||
echo "backend tests: ${{ steps.test_backend.outcome }}" | ||
echo "frontend tests: ${{ steps.test_frontend.outcome }}" | ||
echo "upload coverage: ${{ steps.send_to_codecov.outcome }}" | ||
exit 1 |
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 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run husky_msg && npx lint-staged && npm run compile_css |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
#npm run husky_msg && npm run prettier_check | ||
npx lint-staged | ||
npm run update_browserslist |
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,41 @@ | ||
{ | ||
"extends": "stylelint-config-standard", | ||
"plugins": [ | ||
"stylelint-no-indistinguishable-colors", | ||
"stylelint-color-format" | ||
], | ||
"rules": { | ||
"color-named": "never", | ||
"color-no-hex": true, | ||
"color-format/format": { | ||
"format": "rgb" | ||
}, | ||
"color-function-notation": "modern", | ||
"declaration-block-no-redundant-longhand-properties": true, | ||
"font-family-name-quotes": "always-where-recommended", | ||
"font-family-no-missing-generic-family-keyword": [ | ||
true, | ||
{ | ||
"ignoreFontFamilies": ["FontAwesome", "Glyphicons Halflings", "kbase-icons"] | ||
} | ||
], | ||
"length-zero-no-unit": true, | ||
"no-descending-specificity": null, | ||
"plugin/stylelint-no-indistinguishable-colors": false, | ||
"selector-max-compound-selectors": 5, | ||
"selector-max-class": 5, | ||
"selector-no-qualifying-type": [ | ||
true, | ||
{ | ||
"ignore": ["attribute", "class"] | ||
} | ||
], | ||
"shorthand-property-no-redundant-values": true | ||
}, | ||
"ignoreFiles": [ | ||
"kbase-extension/static/ext_components/**/*.css", | ||
"kbase-extension/static/ext_packages/**/*.css", | ||
"kbase-extension/static/kbase/js/patched-components/**/*.css", | ||
"docs/**/*.css" | ||
] | ||
} |
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,60 @@ | ||
extends: | ||
- stylelint-config-standard | ||
- stylelint-config-sass-guidelines | ||
|
||
plugins: | ||
- stylelint-color-format | ||
- stylelint-scss | ||
# - stylelint-no-indistinguishable-colors | ||
|
||
ignoreFiles: | ||
- kbase-extension/static/**/*.{less,scss,css} | ||
|
||
rules: | ||
color-named: never | ||
color-no-hex: true | ||
color-format/format: | ||
format: rgb | ||
color-function-notation: modern | ||
declaration-block-no-redundant-longhand-properties: true | ||
declaration-block-no-shorthand-property-overrides: true | ||
font-family-no-missing-generic-family-keyword: | ||
- true | ||
- ignoreFontFamilies: | ||
- FontAwesome | ||
- "Glyphicons Halflings" | ||
- kbase-icons | ||
function-url-quotes: never | ||
length-zero-no-unit: true | ||
max-nesting-depth: 10 | ||
no-descending-specificity: null | ||
# set to true to enable | ||
# plugin/stylelint-no-indistinguishable-colors: false | ||
selector-class-pattern: null | ||
selector-max-compound-selectors: 5 | ||
selector-max-class: 5 | ||
selector-max-id: 1 | ||
selector-no-qualifying-type: | ||
- true | ||
- ignore: | ||
- attribute | ||
- class | ||
shorthand-property-no-redundant-values: true | ||
unit-allowed-list: | ||
- [em, px, rem, "%"] | ||
- ignoreProperties: | ||
x: | ||
- background-image | ||
s: | ||
- transition | ||
deg: | ||
- background | ||
value-keyword-case: | ||
- lower | ||
- ignoreKeywords: [ | ||
/^\$/ | ||
] | ||
- ignoreProperties: [ | ||
"/^font.*/", | ||
url | ||
] |
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.