-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add unit test artifacts * Add tests for Box and Icon * WIP add gha action for unit test * Fix gha for jest test * Fix npm run invoke * Refactor test gha * Add selenium setup * Fix integration test * Skip ci when ci-skip is in commit message * Add Button integration test * Fix integration test for Button * Fix missing start_app * Cache py dependencies * Test cached py deps * Fix venv activation for pytest * Update package * Add build job to GHA * Fix build job * Activate venv to build the package * Install virtualenv * Fix build package * Add workflow to deploy docs * Fix docs publish job
- Loading branch information
1 parent
1862ddc
commit c671aaf
Showing
28 changed files
with
6,769 additions
and
2,888 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,70 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [ master, 'feat/**', 'feature/**' ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'ci-skip')" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "10" | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install python libraries | ||
run: | | ||
pip install virtualenv | ||
virtualenv venv | ||
source venv/bin/activate | ||
pip install -r requirements.txt | ||
- name: Install node dependencies | ||
run: | | ||
npm install | ||
- name: Build package | ||
run: | | ||
source venv/bin/activate && npm run build | ||
test-unit: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "10" | ||
- name: Instal node dependencies | ||
run: | | ||
npm install | ||
- name: Run Jest | ||
run: | | ||
npm run test:unit | ||
test-integration: | ||
runs-on: ubuntu-latest | ||
needs: test-unit | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Set up Selenium | ||
uses: nanasess/setup-chromedriver@v1.0.5 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('tests/requirements.txt') }} | ||
- name: Install test dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r tests/requirements.txt | ||
- name: Run tests | ||
run: pytest --headless | ||
|
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 |
---|---|---|
|
@@ -277,4 +277,5 @@ GitHub.sublime-settings | |
# docs | ||
docs/ | ||
|
||
.vscode | ||
.vscode | ||
.devcontainer |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
setupFilesAfterEnv: [ | ||
'./tests/unit/jestSetup.js' | ||
] | ||
} |
Oops, something went wrong.