Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split test functions in gha #2321

Merged
merged 1 commit into from
Jun 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI-integration-testing

on:
[push, pull_request]

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2.0.0
with:
miniconda-version: 'latest'
activate-environment: test-environment
python-version: 3.6.10
auto-activate-base: false
auto-update-conda: true
condarc-file: test/condarc.yml

- name: Use Node JS 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Install JS dependencies
run: |
npm ci
npm install bower
./node_modules/bower/bin/bower install

- name: Install Narrative Application
shell: bash -l {0}
run: |
bash ./scripts/install_narrative.sh
npm run minify
sed <src/config.json.templ >src/config.json "s/{{ .Env.CONFIG_ENV }}/dev/"
sed -i 's/{{ if ne .Env.CONFIG_ENV "prod" }} true {{- else }} false {{- end }}/true/' src/config.json
jupyter notebook --version

- name: Run Narrative Frontend Integration Tests
shell: bash -l {0}
env:
KBASE_TEST_TOKEN: ${{ secrets.NARRATIVE_TEST_TOKEN }}
run: make test-integration
10 changes: 2 additions & 8 deletions .github/workflows/test.yml → .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI-testing
name: CI-unit-testing

on:
[push, pull_request]
Expand Down Expand Up @@ -45,19 +45,13 @@ jobs:
shell: bash -l {0}
run: make test-frontend-unit

- name: make test output available as artefact in case of failure
- 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

- name: Run Narrative Frontend Integration Tests
shell: bash -l {0}
env:
KBASE_TEST_TOKEN: ${{ secrets.NARRATIVE_TEST_TOKEN }}
run: make test-integration

- name: Send to Codecov
uses: codecov/codecov-action@v1
with:
Expand Down